WordPress “Missed Schedule” issue – Fix it in 1 minute
Thursday, July 22nd, 2010This problem has been apparent since WordPress version 2.x. Sometimes it happens when you move your blog to another hoster; it was an intermittent issue for me but still annoying.
There are several solutions I have found, but this one is best as you don’t need to SSH into your web server… and you may not have access anyway if your blog is hosted by a third party. WordPress sometimes has excessive delays for carrying out schedules; by default you only have 0.01 seconds to initiate the cron job for scheduling. Cron is a time scheduler for Unix/Linux based systems, and it is handy for automating tasks. In this case, our automated task is to post blog entries at a specific date and time without manual intervention.
So to fix this issue, use FTP to access your WordPress install and edit cron.php in the wp-includes folder.
- Find this line entry in cron.php: wp_remote_post ($cron_url, Array (‘ timeout’ => 0.01, ‘ blocking’ => false));
- Change the timeout to 20 seconds: wp_remote_post ($cron_url, Array (‘ timeout’ => 20, ‘ blocking’ => false));
Save the file and upload it back onto your webspace.