WordPress Post Missed Schedule

by Bey Luen on January 30, 2009

in WordPress

Since WordPress released version 2.7, I’ve seen many people could not get the scheduling function working properly. You could still schedule a post but the future post simply miss the time when the scheduled time come. What you could see in the Wordpress dashboard is “Missed Schedule”. I know, this is very frustrating.

WordPress Missed Schedule

The Missed Schedule Problem

The way WordPress handles scheduling is that whenever a page is loaded, either from your blog or in your admin control panel, the file wp-cron.php is loaded. At normal, if correctly configured, the server can talk to itself just fine and WordPress scheduling system will works perfectly. It’s only when you start doing strange and weird things like not having DNS setup properly or blocking loopback connections then it will cause you problems. It is possible that certain web hosts are not allowing WordPress cron jobs to run but for many that is not the issue as scheduled posting was working before upgrading to WordPress 2.7.

In WordPress 2.7, the cron job design, which is the core of the scheduling engine, is significantly changed as you can from both wp-cron.php and cron.php in /wp-includes/ folder. In WordPress 2.7 wp-cron.php, there are references to local-time and doing_cron option is set to zero. This is not exist in WordPress version 2.6.5. This might be the cause of the problem as it’s very likely that your web server time is off by a few seconds or minutes from the WordPress official time. And doing_cron argument is set to zero making it absolutely necessary that your web server and WordPress time to match with each other in order for the scheduled post to go through.

Solutioni #1

If you think that your web server settings is the cause of the problem, simply type this URL in your browser http://www.yourblog.com/wp-cron.php (replace yourblog with your actual domain name) to verify. If you see a blank screen, then your web server settings is ok. You can proceed to solution #2. If you see some error pages, then kindly check with your web hosting technical staff and ask for their help.

Solution #2

This is the solution to fix local-time and doing_cron option in wp-cron.php. If your programming is good enough, you are free to change the code and fix the issue yourselves. Remember to backup your WordPress before applying any change in production.

If you’re not familiar with programming, don’t worry, there is a simple solution.

  1. Download WordPress version 2.6.5 from WordPress repository.
  2. Extract both wp-cron.php and cron.php file from version 2.6.5.
  3. Backup your WordPress database.
  4. Rename both wp-cron.php and cron.php in your web server to other name.
  5. Upload both wp-cron.php and cron.php extracted from version 2.6.5 to your web server via FTP client.

Conclusion

I hope the fix working fine for you. WordPress should really look into this issue seriously and provide a fix or help to resolve the issue faced by many of the bloggers. If WordPress is not able to publish future post at predefined time, it should recheck it periodically for several time, says every 15 minutes, and publish the post as soon as possible.

What are your thoughts? Kindly share it with us at the comment box below.

Related Posts:

  1. How To Schedule A Future WordPress Post
  2. Using WordPress Can Ban Your Blog From Ping Services
  3. 13 Interesting WordPress Plugins You Should Not Missed
  4. The Disaster Of Not Having WordPress Blog Backup Regularly

If you enjoyed this post, I would be very grateful if you leave a quick comment below or subscribe via email or RSS or follow me on Twitter. Don't miss out on new blogging tips and online business tips! - Bey Luen

{ 5 trackbacks }

ThePickards » Blog Archive » Wordpress 2.7.1 Thoughts
February 21, 2009 at 4:36 pm
Fixa tidsinställning i Wordpress » Mikael Jisander
April 1, 2009 at 6:45 pm
It’s all Good. » Testing, testing…
June 28, 2009 at 10:54 pm
Missed Schedule for Posts in Wordpress | Mats Lindh
January 12, 2010 at 6:01 pm
Wordpress Posts with ‘Missed Schedule’ error » Blogging Tips, Make Money Online, SEO
January 27, 2010 at 9:04 am

{ 34 comments… read them below or add one }

1 Linn January 30, 2009 at 6:30 pm

this is fantastic post..

i am a big wordpress fan and i am sure this post will help out alot of big fan like me on missed schedule.

thanks for sharing

Reply

2 lukas February 6, 2009 at 12:41 pm

Not work for me, I do all your solutions suggest, but my wordpress 2.7 still show missed schedule, anyone can help me ?

Reply

3 Bey Luen February 6, 2009 at 2:10 pm

@lukas,
Which version of WordPress you were using previously? Was it working in previous version?

Reply

4 Hamroblog February 9, 2009 at 1:19 am

It’s doesnot work in my blog. I am in tenson. What to do ?

Reply

5 Bey Luen February 9, 2009 at 1:30 am

@Hamroblog,
Are you upgrading to WordPress 2.7 recently? Is your previous WordPress working fine?

Reply

6 John February 10, 2009 at 6:10 pm

Re Missed Scheduling problem
Bless you!
I do hope the people who create WordPress will do something to remove this scheduling defect as it causes enormous grief for those of us with a generally adequate but not real in-depth coding ability.

Also thanks for such a wonderfully clear explanation of what to do. The only info missing was where to find cron.php but that didn’t take long.

Keep up the great work.

Reply

7 Bey Luen February 10, 2009 at 6:28 pm

@John,
Thanks for your great comments. I will take note and improve for my missing info. I believe the scheduling system in WordPress might not be well-tested under different scenarios. That’s why it created so many problems.

Reply

8 Angelo Bertolli February 22, 2009 at 6:01 am

As per solution no. 1: please make sure that you set the path to your wp installation, not just the domain. Although this is the domain for most people, some people use the feature of wp that allows you to serve pages from another subdirectory.

Reply

9 leo February 23, 2009 at 10:37 am

if all else failed, this simple plugin will just do the trick, link here: http://blog.5ubliminal.com/posts/missed-schedule-future-posts-scheduled-mias-wordpress-plugin/

Reply

10 JBeckett February 24, 2009 at 4:53 am

This doesn’t work for me nor does the mias-wordpress-plugin, which pushes through everything that’s scheduled even if the time has not passed yet.

Can anyone please advise, Thank you!

Reply

11 Ash March 29, 2009 at 8:08 pm

This fix does’nt seem to be working for me either. I think the issue might be with my host, since i moved hosts recently.

Reply

12 Bey Luen March 29, 2009 at 8:20 pm

@Ash,
Then please check with your host first. And please share with us if your host can fix your issue. Thanks.

Reply

13 Sohail Ahmed April 8, 2009 at 7:16 pm

Thanks for sharing this tricky tip :P

Reply

14 Travel Blog May 4, 2009 at 5:03 pm

Many thanks, worked for me, took a long time to find this post. Kudos.

Reply

15 noha May 13, 2009 at 8:23 pm

it is still not working:(( so i have to restart the server?? it keeps increasing the time left for the post publish ufff:(((( any ideas out htere please???
thnks

Reply

16 noha May 13, 2009 at 8:23 pm

thanks again

Reply

17 Teresa Lo June 2, 2009 at 5:13 pm

Hi, I followed your instructions and the solution didn’t work for me either. Could it be that Wordpress has changed their way of doing things? Check out this post.

Reply

18 Alison | Quest for Balance June 11, 2009 at 5:59 am

This fix also doesn’t work for us. We’re using WP v2.7.1. Would love to hear any other solutions that are working for people. Thanks. –A

Reply

19 Luke June 26, 2009 at 12:16 am

I’m a coder but I’m too lazy to fix this, hehe. I’m just not gonna schedule posts until Wordpress comes up with a fix themselves. Thanks for the fix though! The main thing I don’t like about the fix is that I have to replace core files, which will then get replaced when I upgrade again anyways, so once again that just goes back to my laziness and trying to keep things simple :)

Just so people know – I’m with Hostmonster and all my blogs have this issue in the latest version (even 2.8)

Reply

20 Jacek Krużycki June 28, 2009 at 7:55 pm

Hi,
This solution not working for my WP 2.8. (previuosly 2.7).

Reply

21 Stenlault July 12, 2009 at 8:06 am
22 John July 13, 2009 at 11:22 am

Same problem here, I upgraded to 2.8.1 and I thought it will solve the problem but still it doesn’t, I’m also under a xeon dedicated server with 8GB Ram, running Linux CentOS.

Reply

23 Andy July 17, 2009 at 4:10 am

To be honest I’ve never really noticed a problem with missed scheduled posts but then again I’m never away from the computer so I generally post them straight away. I’ll keep an eye out for this problem though. Thanks for posting

Reply

24 Ross August 9, 2009 at 6:47 pm

It worked for me. Thanks so much for the explanation. With two weeks of posts lined up I can now enjoy my vacation! Cheers!

Reply

25 Mark August 10, 2009 at 1:35 pm

I upgraded to 2.8.3 problem still not fixed. Tried the solutions above..
Solution1 – blank page good.
Solution2 – copied the files..
Unfortunately problem not fixed… (but my site was under a password via .htaccess
Removed security.. fixed.. the scheduling problem (but now no security)
Restored wp-cron.php and cron.php to the 2.8.3 files
Tried again works..
So net net.. if you are having the problem could be .htaccess issues.

Reply

26 Hamroblog October 16, 2009 at 10:59 pm

Thank u Bey Luen For attention My reply
I upgraded to 2.8.4 .Tried the solutions above problem still not fixed. .
In 2.6.5 It’s work fine. when I upgread wp latest verson Problem creat in scheduleing matter .
Plz help me to solve this problem

Reply

27 Chart Popper October 29, 2009 at 2:59 pm

Just so you all know, I tried this fix (#2) and it worked 100% perfectly! Well done, and thank you very much Bey. I will keep checking back for your wisdom regarding WordPress.

If anyone is at all interested, check out our blog at http://chartpoppers.com and let us know what you think.

Regards!

Reply

28 Car insurance claims >> http://onlinecarinsuranceclaims.com/ November 24, 2009 at 4:44 am

[... - http://www.bloghighlight.com is another must see authority of tips. Car insurance claims [… -

Reply

29 Vasta December 22, 2009 at 10:15 pm

Worked fine! thanks!

Reply

30 Peter December 28, 2009 at 4:40 am

I haven’t had any issues with WP cron myself, but I’m working on a plugin that will have relatively large distribution, across a number of different servers, and it needs the ability to schedule – I’m definitely nervous about using wp cron because of these types of issues.

Why does wordpress go to all the trouble to make a new http request for these internal cron events? Why go to all the trouble to make a potentially problematic http request, when you’ve already got wordpress loaded (and could just call whatever function is necessary)?

Is it a security issue (making a separate request with admin credentials to get admin functions)? Surely this isn’t the best solution?

Reply

31 Ariel Bustillos December 28, 2009 at 12:00 pm

If this is not working yet, I have a plugin in order to correct this issue:

http://arielbustillos.com/missed-schedule/

Reply

32 Ariel Bustillos December 30, 2009 at 12:46 am

Thank you, I made a plugin inspired on this:

Missed Schedule Plugin

Reply

33 Tom January 1, 2010 at 10:22 pm

Great post! Fixed my problem using step #1. I got a nasty fatal error, so I reviewed my settings. I just implemented Wordpress for my blog (was on blogger.com, this is *much* better), so I double-checked the settings. Even though a default time-zone was set, I changed it to the correct one for me and that fixed the problem. Thanks again!

Tom

Reply

34 Naeem February 24, 2010 at 1:12 pm

how can i delet miss posts i have 1100+ ? any fast way

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: