I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.
I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.
Share Improve this question edited Aug 28, 2020 at 14:20 SparkAndShine 2332 gold badges5 silver badges14 bronze badges asked Apr 26, 2011 at 14:33 OnitaOnita 1534 bronze badges 1- A similar question is here: wordpress.stackexchange/questions/13673/missed-schedule – Simon East Commented Aug 3, 2015 at 3:05
2 Answers
Reset to default 5Due to your server configuration, you may need to use the alternate cron method, which uses redirect rather than http loopback.
Try adding the following to your wp-config.php
file:
// Alternate cron method
define( 'ALTERNATE_WP_CRON', true );
The missed schedule is due to wordpress timeout in the cron process. Go to wp-include/cron.php, around line no 248, change the value of 0.01 to a larger number.
in my case, I changed from : wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
to
wp_remote_post( $cron_url, array( 'timeout' => 7, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
remember this cron.php is a wordpress core file, it will get overwritten when you update your wordpress core. So after every update, remember to change the value again.
If this doesn't work for you, make sure your timezone setting is set correctly. The setting can be found at: Settings > General