Got Rank Math Error in all my sites

#273145
  • Resolved Enrique
    Rank Math free

    Hello. I am getting some Rank Math errors in my sites, the errors are just like (the info is in spanish):

    WordPress versión 5.8.1
    Plugin actual: Rank Math SEO (versión 1.0.73)
    PHP versión 8.0.2

    Detalles del error
    ==================
    Se ha producido un error del tipo E_ERROR en la línea 665 del archivo /home/enriquees/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php. Mensaje de error: Uncaught RuntimeException: Unable to claim actions. Database error. in /home/enriquees/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:665
    Stack trace:
    #0 /home/enriquees/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(588): ActionScheduler_DBStore->claim_actions()
    #1 /home/enriquees/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(153): ActionScheduler_DBStore->stake_claim()
    #2 /home/enriquees/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch()
    #3 /home/enriquees/public_html/wp-includes/class-wp-hook.php(303): ActionScheduler_QueueRunner->run()
    #4 /home/enriquees/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #5 /home/enriquees/public_html/wp-includes/plugin.php(518): WP_Hook->do_action()
    #6 /home/enriquees/public_html/wp-cron.php(138): do_action_ref_array()
    #7 {main}
    thrown

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience caused.

    It seems like new tables are not getting created in the Database or some old plugin has left an incorrect entry.

    1. Please follow these steps to fix the issue:
    https://rankmath.com/kb/fatal-error-after-1-0-49-update/

    2. Please follow only the first 2 steps and clear your caches. The following steps mentioned in the article are for advanced users.

    Here’s a video screencast:
    https://i.rankmath.com/KStFug

    Please clear all the cache, including the server after following the above process and that should resolve the issue.

    Also, the multisite version of the Repair Action Scheduler needs to stay active on the website.

    Hope that helps. Thank you and please don’t hesitate to let us know if you need our assistance with anything else.

    hi, i am tried with this method, although it can create the new site(I`m in multisite), after creating the new site and deleting the plugin, then I try to create another new site, but the issue happens again, seem like we have to activate the plugin for our entire life 🙂 not like your video show that it can be deleted after running once?

    Hello,

    You will have to keep the plugin network active in the multisite setup to avoid the error related to the Action Scheduler.

    Hope this clarifies your doubts. Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    hi, thanks for your reply.

    may i ask, can I just insert the snippet code:
    add_action( ‘init’, function() { delete_option( ‘schema-ActionScheduler_StoreSchema’ ); } ); into wp file instead of installed smippet plugin or install repair-action-scheduler?

    if possible, which file should I insert the code?

    Hello,

    No, that code is not a fix for the issue at hand here. The issue here is the difficulty in creating the tables properly on your website.

    Because of that, the plugin needs to remain active so each time a new subsite is created the database tables related to ActionScheduler can also be created.

    If you continue to experience issues or want to clarify any other questions please open a support ticket related to this from your account.

    Thank you.

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

The ticket ‘Got Rank Math Error in all my sites’ is closed to new replies.