By Jay Haydon on Wednesday, 20 December 2017
Posted in Technical Issues
Replies 3
Likes 0
Views 1K
Votes 0
Hi,

I'm using Komento on my website and everything works perfect, except for the Notifications Cron.

I use the Cron for sending new email notifications to a specific Joomla User Group.
The Cron setup is correct and tested.

I looked into cron.php in /components/com_komento and I noticed the $host variable.

Is this supposed to be the domain name, and how do you set it? Should this be hardcoded in cron.php?

I also noticed that the lines using fsocketopen and connect / fclose are not being executed correctly and thus won't send emails. This again is probably caused because of the $host variable.

Thanks!
Hey Jay,

There are two types of cron dependent on how you are setting up your cronjob. If you followed the cronjob documentation at https://stackideas.com/docs/komento/administrators/cronjobs/setting-up-cronjobs-in-cpanel using the URL structure specified in the docs, you don't need to configure the cron.php file.

If you are configuring the cronjob to run the php file, you need to edit the cron.php file and change yoursite.com to your correct domain name.
·
Wednesday, 20 December 2017 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

thanks for the quick response.

Setting up the cron to fire up the component task instead of the file helped.

Thanks!
·
Wednesday, 20 December 2017 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Jay. Yeah, the cron.php is only for customers who has problems with their hosting provider not allowing to run wget on the cron as some hosting provider only allows running CLI for php scripts
·
Wednesday, 20 December 2017 23:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post