• Resolved zian00

    (@zian00)


    My website shows up a lot of Action Scheduler past due. When I check the status, it shows a lot of fatal errors like in the picture.

    Please help me check if it is a serious error and how to handle it. Thanks a lot.

    • This topic was modified 6 months, 1 week ago by zian00.
    • This topic was modified 6 months, 1 week ago by James Huff.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi @zian00,

    Somewhere on your site, perhaps in one of your plugins or some custom code, a scheduled action is being repeatedly created but, when it is processed, the relevant function (“wp_action_scheduler_purge”) is missing.

    • What version of Action Scheduler are you using? You can determine this by visiting Tools ? Scheduled Actions, then accessing the Help pull-down at the top of the screen.
    • What plugins are you using and, if you happen to know, can you tell us which plugin or plugins are loading Action Scheduler?
    • What version of PHP are you using? If you are unsure, try visiting Tools ? Site Health ? Info ? Server and see what you can discover.

    Normally, this problem is caught by Action Scheduler and shouldn’t block other actions from being processed, so I’m curious if you are using an older version or if there are conditions we haven’t accounted for.

    Thanks!

    Thread Starter zian00

    (@zian00)

    In my website, there was a piece of code to delete the schedule action. I wonder if this is a conflict?

    I will send you the PHP version and code for you to check for me, but currently I cannot find the version of the action schedule because it is different from the link you pointed out.

    Please help me find the cause ?? Thank you

    https://imgur.com/a/eNexBw3

    Plugin Author Barry

    (@barryhughes-1)

    Just a note for the future: when you share code on the forums, it’s much better that you do it as text rather than as an image ??

    In any case, it looks like you have a typo in the snippet (the function has the prefix wpb_ but when you set up the filter you are using wp_). I hope that helps, but please also note we can’t really support the development of custom code here.

    Thread Starter zian00

    (@zian00)

    Thank you very much for your persistent support. I’m also a bit tech-blind so I don’t know the rules when copying code :D.

    Now that I’ve turned off that code, the website is now running its action schedule normally. Hope everything will get back on track. Thank you

    Plugin Author Barry

    (@barryhughes-1)

    Awesome ??

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