Cron jobs at server not working
-
Hi I disabled wordpress cron jobs with this code in wp-config.php
<?php if(!defined(‘DISABLE_WP_CRON’)){define(‘DISABLE_WP_CRON’, 1);} ?>
Then in my cpanel I added system cron job to run wp-cron.php
0 * * * * cd /home/lugabglj/public_html/test/bg_wp/ && /usr/local/bin/php /home/lugabglj/public_html/test/bg_wp/wp-cron.php > /dev/null 2>&1
For some reason this command is not working and I get in debug.log this error:
[29-Oct-2016 20:00:04 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/lugabglj/public_html/test/bg_wp/wp-includes/ms-settings.php on line 48
What may be the problem?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Cron jobs at server not working’ is closed to new replies.