By eisabainyo
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!
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.