Cronjob not running

June 2, 2014 1.5k 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.
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:

Have another answer? Share your knowledge.