Report this

What is the reason for this report?

Cronjob not running

Posted on June 2, 2014

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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: <br> <br><pre> <br>ini_set(‘display_startup_errors’,1); <br>ini_set(‘display_errors’,1); <br>error_reporting(-1); <br></pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.