Cron Job Not Running or Not Sending Output: Troubleshooting Scheduled Scripts
Cron fails because of paths, permissions, environment or syntax.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- Use the full path to PHP and to the script, not relative paths.
- Make sure the script runs by hand from the same user.
- Check the schedule syntax (minute, hour, day, month, weekday).
- Redirect output to a log file to see errors.
- Check permissions on the script and folders.
- Confirm the host allows cron frequency and runtime.
- Time zone: cron uses the server's time.
See How to Set Up a Cron Job in Your Hosting Panel and WordPress Cron Not Running: Scheduled Tasks and Backups Do Not Fire.
Related guides
- WordPress: Clone a Site to a Subdomain for Testing
- Rollback Plan: How To Undo a Change in 5 Minutes
- Restore One File or One Database Table From a Backup Without Rolling Back Everything
- phpMyAdmin Import Fails: File Too Large or Script Timed Out
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.