please fix this error

#453024
  • Resolved tech burner
    Rank Math free

    Notice: Undefined variable: num_pastdue_actions in /home/techgkun/thetechburner.com/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_AdminView.php on line 189

    Notice: Undefined variable: num_pastdue_actions in /home/techgkun/thetechburner.com/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_AdminView.php on line 194
    Action Scheduler: 0 past-due actions found; something may be wrong. Read documentation »

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    The notice is not an error, but a message stating that there are pending Action Scheduler actions that were not completed.

    You can follow either of the following steps to remove the warning:

    1. Please add the following filter to remove the warning:

    
    add_filter( 'action_scheduler_pastdue_actions_check_pre', '__return_false' );
    

    1.1 Here is a tutorial on how to do it:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    2. Open the Action Scheduler page, click on the Pending tab, Select all and delete them using the Bulk Action dropdown:
    https://i.rankmath.com/XBucZ8
    Normal WordPress installation path:
    /wp-admin/admin.php?page=wc-status&tab=action-scheduler

    WordPress installation with WooCommerce in it:
    /wp-admin/admin.php?page=wc-status&tab=action-scheduler

    3. You can set up a real cron job for the same:
    https://www.siteground.com/tutorials/wordpress/real-cron-job/
    https://www.google.com/search?q=wp+cron+replace+with+real+cron

    Please stay advised that the Action Scheduler will not run if there are no visitors to the site (just like WP’s own cron). Even Action Scheduler, the library that is used in the RM plugin, states that “Actions that are past-due have missed their scheduled date; because of how WP Cron works, it is normal to have some past-due actions.”

    I hope that helps.

    Please solve it in the next update. It appears in ALL my sites with Rank Math

    Hello @desarrollo9,

    Thank you for reaching out to us and bringing your concern to our attention. We apologize for the inconvenience.

    As mentioned in our previous reply, this is not an issue with the Rank Math plugin but rather an issue with the cron jobs on the website which are not completed on time, and as such, the actions are being shown on this new view.

    To fix the issue, we recommend following the steps we mentioned before and even setting up a working real cron job to run the actions consistently, so they don’t end up on the past due list.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘please fix this error’ is closed to new replies.