Missing Your WordPress Scheduled Posts?
Filed under: WordPress - Blog Tips, Plugins & How-To
Many WordPress users report their self-hosted WordPress site missed scheduled posts. The earliest reports of the “missed schedule” posts date back to WordPress version 2.7, with more frequent reports noted with the WordPress version 2.9 upgrade.
I believe this is because the timeout value is too short: wp_remote_post($cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false));
When making a request to wp-cron.php, it won’t return until all cron jobs are executed. And 0.01 is too short. It doesn’t hurt to extend the time span, as much as 10 minutes even. It will return as long as the mature crons are fired up and executed; in most cases only a few seconds.
For those of you who know how to edit the /wp-includes/cron.php file, simply edit 0.01 to 10 and extend the time allowed for running future scheduled posts.
Detailed instructions for extending the timeout value in /wp-includes/cron.php are below. You need ftp access to your server and a text editor. I use Notepad++, however Notepad2 or Notepad may work well for you.
How To Correct Missed Schedule Posts in WordPress
- Login to your ftp server account and locate the /wp-includes/cron.php file.

The cron.php file is located within the wp-includes folder.

- Open the cron.php file in your source code editor.
NOTE: Save a copy of the original file to your desktop prior to editing.Locate the following source code in the cron.php file.
}
set_transient( ‘doing_cron’, $local_time );
$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’; wp_remote_post( $cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) ); } - Change ‘timeout’ => 0.01 to ‘timeout’ => 10
- Save the edited cron.php file and upload to the /wp-includes folder, overwriting the current cron.php file
REMEMBER: Backup the original file before overwriting. - Schedule a post and test for success.
Don’t Speak Geek?
Did your eyes glaze over simply looking at source code? Does the thought of getting into your hosting server account make you weak in the knees?
Take a deep breath. Relax. Send us a confidential email. Our WordPress tech team can do it for you.


![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=27b1ada8-cf16-4370-a99b-dc14ee341a31)



