• Resolved Steve Jones

    (@stevejonesdev)


    I’m having issues on a staging server (flywheel) where the Pending schedules never run. What’s the best way to troubleshoot this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • A couple things to check:

    1. Is the staging site protected with HTTP authentication?
    2. Is Alternate WP-Cron setup, or standard WP-Cron?
    3. Are there any completed items?
    Thread Starter Steve Jones

    (@stevejonesdev)

    1. Yes, the site is protected.
    2. Standard Wp-Cron
    3. Completed items are ones I’ve manually processed.

    Okay, that’s likely the problem: standard WP-Cron typically doesn’t work if there’s HTTP authentication in place. There are a few plugins that create a GUI for you to add the username and password, or you can hard-code the header on the cron request.

    This plugin provides a GUI, and browsing the code will show you how to hard-code the header for the cron request:

    https://ww.wp.xz.cn/plugins/wp-cron-http-auth/

    Also keep in mind that standard WP-Cron is triggered by traffic to the site, so pending actions will only run upon page load.

    Thread Starter Steve Jones

    (@stevejonesdev)

    The HTTP authentication was the issue. Thanks for your help!

    You’re welcome! 🙇‍♂️

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Thanks for assisting @stevejonesdev here @crstauf, it’s appreciated!

    I will mark this thread as Resolved for now.

    Thanks,

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Pending items never run’ is closed to new replies.