Question

Wordpress Cron Setup, "Missed Schedule" Error

Posted October 21, 2013 9k views
Scheduled posts are not working on my wordpress site, I get the "missed schedule" message on my post page. I attempted to setup a cron job in crontab to run every minute which would trigger any scheduled posts, but it doesn't seem to be working. I am running W3 Total Cache and I have tried it with W3TC on and off, also shut off non essential plugins. I first added this text to my wp-config.php: define('DISABLE_WP_CRON', true); Then went into my console and did: > crontab -e And then added the following text... > */1 * * * * wget http://www.recipehearth.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1 All the articles I've read say this should do it. Any idea's?

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
This is what worked for me.

1) Checked that cron was running on droplet:
> pgrep cron
It will return a number if it is on and working. My cron was running but if it needs to be restarted do:
> service cron restart

2) Increased file permission for wp-cron.php to 755
> chmod 755 /whatever/your/directory/is/wp-chron.php

At this point I could get scheduled post to work with W3 Total Cache OFF but not ON, so the problem was still not fixed.

4) Installed WP Missed Schedule Fix Failed Future Posts Plugin http://wordpress.org/plugins/wp-missed-schedule/ and turned W3 Total Cache ON.

Everything is running great, plus by turning of the WP Cron it has reduced the CPU load as it is not running wp-cron.php every time the site gets a visitor. Hope this helps someone else!
Submit an Answer