• Resolved ngrudev

    (@ngrudev)


    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

    • This topic was modified 8 years, 5 months ago by ngrudev.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ngrudev

    (@ngrudev)

    resolved

    Hey ngrudev, I’m having the same issue… could you please give some indications on how you resolved your issue?

    Me too. I just upgraded to the latest WordPress and now I am receiving such errors… Anybody know why or how to fix it?

    Well for anyone else who comes across this, disabling the WordPress debugger stopped this from happening. The cron now runs with no errors.

    I’m getting the same error appearing in my debug.log file.

    I too have disabled wp-cron and control it via a CRON job. All my CRON jobs are running without issue. If the CRON job were causing an issue, I’d see a ‘notice’ every time my wp-cron runs but that’s not the case for me.

    IMHO disabling the wordpress debugger simply stops the alerts – they may still be happening.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cron jobs at server not working’ is closed to new replies.