TransWikia.com

Error trying to publish immediately. Post status = future (Missed schedule error)

WordPress Development Asked by Anfuca on October 30, 2021

We have moved a to new server and now we can’t publish. At least, we can’t publish instantly.

Maybe can be useful: we are using Plesk & CloudFlare.

When we publish a new post, the post_status value in wp_posts table is, automatically, future instead of publish

We have already taken a look at this post with no lucky:
https://wordpress.org/support/topic/publish-immediately-missing-and-scheduled-posts-fails/

What we have already done is:

  • Checked server time
  • Everything OK into site health info
  • Disabled all plugins & changed to default theme
  • Disabled WP Cron and setted custom cron
  • Installed My Missed Schedule and WP Control plugins
    (thanks to the first one, a cron event that is running each 5 minutes forces to publish missed scheduled post).
  • Installed wp-cli and trying to run with wp cron event run publish_future_post --due-now with no lucky
  • Checked PHP extensions according to this
  • An exact backup in my localhost is working like a charm

Here are some snapshots when trying to publish a post at 12:57pm…
Missed schedule

And here the cron thas is created just after trying to publish:
cron list

This is how post_date & post_date_gmt looks on the database:
post date

And this is how the time looks in WP:
wordpress time

So, until 2 hours later, the post isn’t published…
This is being a nightmare. We can’t use, for example, the ACF plugin. We add a new field, and it doesn’t appear until 2 hours later…

Any clue?

One Answer

So the issue in this case was that PHP wasn't displaying correct UTC Time. Thanks to @TomJNowell for pointing me in the right way.

It seems to be a bug/error in some Plesk installation: https://talk.plesk.com/threads/utc-time-issue-plesk-php-7-3-7-4-on-centos7.356169/

To solve the issue we have replaced the UTC file usr/share/zoneinfo/UTC with another copy from another server.

After that, UTC time and Local time appears perfect and we can be able to publish inmediately.

Answered by Anfuca on October 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP