• Resolved hdtechlogic

    (@hdtechlogic)


    Hi there,

    I have two WordPress sites on the same server. One runs just fine with WooCommerce etc, and has done for the past two years, however the other one is constantly having issues with Action Scheduler. I am currently getting the error:

    Action Scheduler:?3?past-due actions?found; something may be wrong.?Read documentation ?

    I have spent quite a lot of time trying to figure out the source of the issue, however have come to no avail. Tried the “normally reliable” troubleshooting steps of disabling all plugins, themes, ensuring the server adheres to minimum WP and Woo requirements, everything updated etc, but issue still occurring.

    I’ve tried to replicate as many WP, server and database options from the working site to the not working site, however also to no resolve.

    I expect Action Scheduler not automatically ‘firing off’ will be a problem for the autonomy of WooCommerce operating in the background…?

    Just to be absolutely clear, not all actions fail. It’s just a selection that are stuck in a Pending status, and thus go past-due. These ones only go out of this state when manually run through the dashboard.

    The list of action hooks stuck in a Pending state are:

    pinterest_for_woocommerce_hourly_heartbeat
    pinterest_for_woocommerce_daily_heartbeat
    woocommerce_cleanup_draft_orders
    woocommerce_run_product_attribute_lookup_regeneration_callback
    action_scheduler/migration_hook

    System status report available here (GitHub Gist page).

    I would appreciate any help you can provide with this matter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @hdtechlogic,

    While you’ve taken most of the common troubleshooting steps, the issue seems to be more complex. Based on the hooks you’ve provided, some of these tasks are related to Pinterest for WooCommerce and others are related to WooCommerce itself.

    The issue could be related to server resources, cron jobs, or even a conflict with another plugin. Since you’ve already tried disabling all plugins and themes, and ensured your server meets minimum requirements, we can rule out some of these possibilities.

    Could you please ensure your server’s WP-Cron is working correctly? WP-Cron is the system WordPress uses to handle scheduling time-based tasks. If there’s an issue with your WP-Cron, it could be causing this problem.

    You can use the WP Crontrol plugin to view all cron events, their arguments, recurrence, callback functions, and when they are next due.

    Additionally, increase your PHP Post Max Size from 256 MB to 2 GB and PHP Time Limit from 30 to 1200.

    Let us know how that goes for you. Looking forward to helping you.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @hdtechlogic,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks!

    Thread Starter hdtechlogic

    (@hdtechlogic)

    Hi there,

    Sorry for the late reply, the email notifying me of your reply automatically went into the spam folder. Apologies!

    The issue is not yet resolved, I am struggling a bit. I have had the following increased: PHP Post Max Size and PHP Time Limit to the figures you suggested as above. Unfortunately issue persists.

    Having installed the WP Crontrol plugin, I receive the following error:

    There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

    Unexpected HTTP response code: 401

    I understand that a 401 is an unauthorised error, however I am unsure why this is. Both I and the server manager cannot find anything that requires credentials that should be stopping this from happening…. therefore I am stuck on what to try next.

    If helpful, please see an updated system status report here (GitHub Gist page).

    I appreciate all your help with this matter.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @hdtechlogic,

    Yes, you are right! The 401 error you see with WP-Cron suggests an authentication issue. This could be due to a security plugin, a misconfiguration in your .htaccess file, or it could be related to your server setup.

    I suggest you contact your hosting provider for further assistance. They might have security measures in place that could be blocking WP-Cron.

    Additionally, make sure to increase the PHP Post Max Size from 256 MB to 2 GB and PHP Time Limit from 30 to 1200 for optimal performance.

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hello there!

    It appears we’ve not had any recent updates from you. I’ll assume you’re all set and switch this issue to ‘resolved’. Remember, we’re always here whenever you want to proceed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Action Scheduler – Past Due Actions’ is closed to new replies.