Question

Cronjob not running

Posted June 2, 2014 2.4k views
I had a cronjob that was running perfectly fine til a few days ago. In my script, I was including a few WordPress start up files like so: include $path . 'wp-config.php'; include $path . 'wp-load.php'; include $path . 'wp-includes/wp-db.php'; include $path . 'wp-includes/pluggable.php'; Since it stopped working, I try running the php script manually from command line, and it doesn't work either. After some investigation, it looks like these two file includes are causing issues. include $path . 'wp-config.php'; include $path . 'wp-load.php'; But I couldn't figure out exactly what or why because it was working fine just a few days ago and I haven't changed the script. The only things I have done recently were install sendmail and rebooted my droplet. Any help would be appreciated. Thank you in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer
Are you seeing any error messages when you run the script on the command line? If not, try enabling more verbose error reporting by adding these lines to the top of your script:


ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
Submit an Answer