• Resolved adamLaughlin

    (@adamlaughlin)


    We run Woocommerce Subscriptions on our site to renew customer orders automatically, and as you know this is handled by Action Scheduler.

    Our server underwent a lengthy period of 100% CPU usage and as a result, every action scheduled to occur since then has entered the past-due status. This continues to occur even though our server is no longer under heavy load.

    We see in fatal_errors logs that WP-Cron is receiving an error every minute as a result of Action Scheduler trying to restart the queue – the error is an UncaughtDivideByZero error on line 436, meaning $interval wasn’t defined.

    We’re trying to get our host to restart the server but they are unhelpful so far.
    Can anybody recommend ways to diagnose and correct this problem without rebooting the server?

    WooCommerce Status page:

    Action Scheduler package: 3.8.1 
    WordPress Cron: green checkmark
    Daily Cron: Next scheduled: 2023-11-09 22:48:03 -05:00

    And the section for Action Scheduler:

    Action Scheduler Version:3.8.1
    Data store:ActionScheduler_HybridStore
    Oldest Scheduled Date for “pending” Actions is 2024-11-05 04:30:00 -0500 (when everything stopped.)

    In case it helps shed any light, the last action which was running was an HPOS table sync.

    • This topic was modified 3 weeks, 1 day ago by adamLaughlin. Reason: added last line
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I understand your concern. The “UncaughtDivideByZero” error you mentioned suggests that there may be custom code or a plugin on your site causing this issue.

    To help identify the root cause, could you please run a conflict test by following the instructions in this article: How to Test for Conflicts? This will help determine if a specific plugin or theme is behind the error.

    Additionally, for the pending actions, could you try manually running them to see if they process successfully? This can be done through the Scheduled Actions section, which is located under WooCommerce > Status > Scheduled Actions.

    Here, you can find actions that are pending. To execute them, simply hover over the action and click ‘Run’.

    In the meantime, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report?which you can find via WooCommerce > Status > Get system report > Copy for support.
    • Fatal error logs?(if any) under WooCommerce > Status > Logs.

    Once we have more information, we’ll be able to assist you further.

    Thread Starter adamLaughlin

    (@adamlaughlin)

    Thank you for your reply; for the sake of posterity, I’ll confirm that re-running the “pending” action solved the problem. In my semi-panicked state I failed to notice that “pending” was a discrete category from “past-due” and expected to solve the problem by running the oldest action in the past-due queue instead.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @adamlaughlin ,

    Glad to hear that this has been sorted! Since the topic has been marked as resolved, feel free to create a new topic if you need any further help with WooCommerce core. ??

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.