WooCommerce Action Scheduler Not Running – Loopback Error

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.

The “Could not connect… loopback connections” message is expected on our hosting. Our security system blocks a site’s requests to itself, so WooCommerce’s Background Processing Test can’t pass here. You can’t fix that and don’t need to.

The supported way to get scheduled tasks running is the one you already tried, ALTERNATE_WP_CRON. This knowledge base article covers it:

With that setting, tasks run during a visitor’s own page load instead of through a separate request. So they only run when someone visits, and pages served from a caching plugin may not trigger them. The article also says external cron services don’t work on InfinityFree, because their requests are blocked too.

Two questions would help narrow this down:

  1. Is the line exactly define('ALTERNATE_WP_CRON', true);, and is it above the /* That's all, stop editing! */ comment in wp-config.php?
  2. Do you have a caching plugin active, and does the pending count change after you load a few uncached pages, such as pages in wp-admin?