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?
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!
This is what worked for me. <br> <br>1) Checked that cron was running on droplet: <br>> pgrep cron <br>It will return a number if it is on and working. My cron was running but if it needs to be restarted do: <br>> service cron restart <br> <br>2) Increased file permission for wp-cron.php to 755 <br>> chmod 755 /whatever/your/directory/is/wp-chron.php <br> <br>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. <br> <br>4) Installed WP Missed Schedule Fix Failed Future Posts Plugin http://wordpress.org/plugins/wp-missed-schedule/ and turned W3 Total Cache ON. <br> <br>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! <br>
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.