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:
My Missed Schedule
and WP Control
pluginswp cron event run publish_future_post --due-now
with no luckyHere are some snapshots when trying to publish a post at 12:57pm…
And here the cron thas is created just after trying to publish:
This is how post_date
& post_date_gmt
looks on the database:
And this is how the time looks in WP:
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?
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP