Troubleshoot WP-Cron when WordPress background tasks are not running
WordPress background tasks can stop even when WP-Cron is not explicitly disabled. This usually happens when the server cannot complete its internal loopback request to wp-cron.php.
In this article
Recognize a WP-Cron or loopback failure
WP-Cron or loopback issues usually affect more than one background feature at the same time. Common signs include:
- Scheduled tasks stay overdue.
- Background logs stop advancing.
- Automated tasks in multiple plugins stop running.
If only one product feature fails while other scheduled tasks continue running, the issue may be product-specific. However, a long-running action can hit a hosting timeout even while shorter tasks from other plugins continue normally.
Test WP-Cron and loopback requests
Check whether WP-Cron is intentionally disabled
Open wp-config.php and look for:
define('DISABLE_WP_CRON', true);If this line is present, WordPress does not spawn WP-Cron during normal page visits.
If your host intentionally disables WP-Cron and uses a server cron job instead, keep this setting and follow How to set up a real cron job in WordPress?.
Check Site Health for loopback failures
- Go to Tools > Site Health.
- Open the Status tab.
- Check for loopback request failures.
A loopback failure means your server cannot complete internal HTTP requests back to your own site.
Test wp-cron.php directly
Open this URL in your browser, replacing example.com with your domain:
https://example.com/wp-cron.php?doing_wp_cronExpected result: a blank page or no visible error.
- 403 Forbidden usually means a firewall, WAF, security plugin, or CDN rule is blocking the request.
- 405 Method Not Allowed usually means server request-handling rules are rejecting the request method.
If an event never starts, it may remain overdue or have no corresponding run in the background-action log. If an action starts but does not finish, check the failed-action log if your site has a scheduled-actions screen, often Tools > Scheduled Actions. Open the failed action, note its exact message and duration, and check whether actions from unrelated plugins fail after the same interval.
A message such as action marked as failed after 300 seconds records when the scheduler stopped waiting for the action; it does not identify what ended the request. Record the exact duration and ask your host to check the PHP and web-server logs at that time. Failures from several plugins at the same duration point to a hosting-level request limit.
Remove the block or configure reliable scheduling
Review any recently added firewall, WAF, security plugin, CDN, or web-server rules that can block requests to wp-cron.php.
If you are not sure what is blocking the request, contact your hosting provider and ask them to:
- inspect server and firewall logs for blocked loopback requests;
- allow WordPress loopback requests to
wp-cron.php.
If the logs identify PHP's execution limit as the cause, ask your host to raise it above the observed task duration. If the web server is closing background or loopback requests, ask your host to configure a cron job that executes wp-cron.php directly on the server instead of calling it through an external web URL. See How to set up a real cron job in WordPress? for the server-cron method. The failed-action message alone does not show which change is needed.
If WP-Cron is intentionally disabled on your site, keep it disabled and configure a real cron job instead: How to set up a real cron job in WordPress?.
Verify that background processing has resumed
After changes are applied:
- Test
wp-cron.php?doing_wp_cronagain. - Recheck Tools > Site Health for loopback errors.
- Confirm the affected action completes, its product's task status or logs advance, and no new failures appear after the same fixed duration.
If WP-Cron checks pass but only one product still fails, continue with that product's troubleshooting documentation or contact support.
