admin管理员组文章数量:1332198
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: /
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
andWP 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…
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?
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/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
andWP 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…
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?
Share Improve this question edited Jul 21, 2020 at 8:37 Anfuca asked Jul 21, 2020 at 8:07 AnfucaAnfuca 1811 silver badge7 bronze badges 5 |1 Answer
Reset to default 2So 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/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.
本文标签: wp cronError trying to publish immediately Post statusfuture (Missed schedule error)
版权声明:本文标题:wp cron - Error trying to publish immediately. Post status = future (Missed schedule error) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742244797a2439061.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
timedatectl
outputs correct Universal time and correct Local time (+2). No plugin or theme interfering. Same behavior in a clean installation on that server... Now I'm trying how to fix the time shown in Settings. Checking timezones on PHP, Plesk, etc. I'm hoping that fixing there, the issue disappears... I'll let you know – Anfuca Commented Jul 21, 2020 at 10:19