Action Scheduler and past-due actions

Website URL

https://honoringhomer.net

Error Message

On Wordpress:
Action Scheduler: %1$d past-due actions found; something may be wrong. Read documentation»

Other Information

This error message seems to have something to do with wp-cron and cron jobs. I don’t get any clues to resolution looking at the wp documentation. And I don’t have any posts I’m trying to schedule.

I did find a post from several years ago on a similar topic, but didn’t glean any path to resolution there, either:

Thanks for whatever pointers you can provide!

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Which plugins do you have installed, and is WooCommerce one of them? Action Scheduler isn’t part of WordPress itself. Some plugins bundle it for background tasks, WooCommerce being the best-known. That’s probably why you see the message even though you haven’t scheduled any posts.

A topic with the same message says Action Scheduler relies on WP-Cron:

That topic’s problem may or may not be the same as yours. A related one had the same message together with a “problem spawning a call to the WP-Cron system” error, caused by a 403 when the site called wp-cron.php:

So, to tell which case yours is: does WordPress under Tools → Site Health show a WP-Cron error, such as “Unexpected HTTP response code”? If so, please quote it exactly.

Our knowledge base also says InfinityFree doesn’t provide cron jobs or any other way to run scheduled tasks. The article is about Laravel, but the limit is general.

There are some 403 error messages mentioned in Site Health, along with problems completing a loopback request and detecting the presence of page cache. A scheduled event failed to run, and automated updates to plug-ins and to Wordpress itself do not occur.

A scheduled event has failed

Performance

The scheduled event, wp_privacy_delete_old_export_files, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

The REST API encountered an unexpected result

Performance

The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

When testing the REST API, an unexpected result was returned:

REST API Endpoint: https://honoringhomer.net/wp-json/wp/v2/types/post?context=edit
REST API Response: (403) Forbidden

Your site could not complete a loopback request

Performance

Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

The loopback request returned an unexpected http status code, 403, it was not possible to determine if this will prevent features from working as expected.

Unable to detect the presence of page cache

Performance

Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: Forbidden (Code: http_403)

Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.

Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:

cache-control, expires, age, last-modified, etag, via, x-cache-enabled, x-cache-disabled, cf-cache-status, x-cache, x-litespeed-cache, x-srcache-store-status, x-srcache-fetch-status, x-cache-status, x-proxy-cache, x-varnish.

This article has a section that covers pretty much the exact issue that you’re seeing.

In short: yes, default WP Cron doesn’t work on our hosting. You can use ALTERNATE_WP_CRON instead.