• I am running latest WordPress 5.4.1 on my own VPS. I tried out the schedule post feature. Then in the posts section I have the “missed schedule” error. I realized the server time was wrong, so I updated that (both Linux time and WordPress settings time). But WordPress never noticed time has now changed and won’t publish the post.

    I have tried about every plugin claiming to be able to fix this error and none do.

    I have tried logging into the server and running “php wp-cron.php”

    I have tried https://url/wp-cron.php?doing_wp_cron=1

    Why after scheduling can we also not have a “publish immediately” button????

    Tell me anything to fix this error. If it’s as simple as editing something in the database directly let me know. This is ridiculous.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The exact server and/or WordPress time shouldn’t matter here. Basically if you schedule a post to be published ten minutes later, it should be published ten minutes later.

    It usually helps if you can provide a URL to the site. As there are a couple of things that can be looked at directly. Like what happens when you try to access the /wp-cron.php file directly in a browser? As it should immediately return a blank white page. Also, what happens why you try to access this file directly /wp-admin/admin-ajax.php? As it should immediately return a blank white page with a small 0 (zero) in the upper left.

    Also, providing the URL allows us to look up the domain to see if the site is behind a CDN like Cloudflare, Incapsula, Sucuri Firewall, etc. And that may be part of the issue. And/or the site is hosted with a host that is known to disable the WordPress cron.

    The first thing to do would be to check for a plugin/theme conflict, by deactivating all plugins and switching to a default theme like TwentyTwenty. Then schedule a post to be published ten minutes later and see if that works.

    Also, check in the site’s wp-config.php file to make sure there isn’t a ‘define’ disabling the wp-cron and/or a ‘timeout’.
    define('DISABLE_WP_CRON', true);
    and/or:
    define('WP_CRON_LOCK_TIMEOUT', 120);

    Editing wp-config.php

    Thread Starter dazappa

    (@dazappa)

    Thank you for taking the time to respond.

    Well I would like to say after a few hours, the post seems to have unstuck itself. So it appears the WP CRON was successful eventually.

    The site is https://opensource.fan/ if you still think it useful to take a look.

    The two defines you mentioned do not exist in my wp-config.php.

    The site is not behind any CDN.

    The theme is custom written from scratch. But if there is some code I must add to my theme for WP CRON to be activated, it’s very possible I have missed adding it.

    > what happens when you try to access the /wp-cron.php
    It does return a white page

    >what happens why you try to access this file directly /wp-admin/admin-ajax.php?
    It does return a white page with a 0

    The site does not receive a lot of traffic as it’s fairly new and more or less under active development, but even manually visiting the site didn’t appear to activate the CRON either…

    >And/or the site is hosted with a host that is known to disable the WordPress cron
    This is hosted on a VPS (SSH with root access). They do not do anything special for WordPress hosting. I setup Apache / PHP 7 / MariaDB and installed WordPress and didn’t mess with the generated wp-config.php.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missed Schedule Error’ is closed to new replies.