Split: Rank Math sitemap_generate breaks WP Cron (and wp-cli)

#169755
  • I have the same problem

    PHP Fatal error: Uncaught Error: Class “WP_CLI” not found in /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php:168
    Stack trace:
    #0 /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/action-scheduler.php(44): ActionScheduler::init()
    #1 /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_Versions.php(59): action_scheduler_initialize_3_dot_1_dot_6()
    #2 /var/www/itzine.ru/wp-includes/class-wp-hook.php(290): ActionScheduler_Versions::initialize_latest_version()
    #3 /var/www/itzine.ru/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #4 /var/www/itzine.ru/wp-includes/plugin.php(484): WP_Hook->do_action()
    #5 /var/www/itzine.ru/wp-settings.php(423): do_action()
    #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require(‘…’)
    #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()
    #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
    #9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process()
    #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #11 phar:///usr/local/bin/wp/php/boot-phar.php(11): include(‘…’)
    #12 /usr/local/bin/wp(4): include(‘…’)
    #13 {main}
    thrown in /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php on line 168
    Fatal error: Uncaught Error: Class “WP_CLI” not found in /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php:168
    Stack trace:
    #0 /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/action-scheduler.php(44): ActionScheduler::init()
    #1 /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_Versions.php(59): action_scheduler_initialize_3_dot_1_dot_6()
    #2 /var/www/itzine.ru/wp-includes/class-wp-hook.php(290): ActionScheduler_Versions::initialize_latest_version()
    #3 /var/www/itzine.ru/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #4 /var/www/itzine.ru/wp-includes/plugin.php(484): WP_Hook->do_action()
    #5 /var/www/itzine.ru/wp-settings.php(423): do_action()
    #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require(‘…’)
    #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()
    #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
    #9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process()
    #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #11 phar:///usr/local/bin/wp/php/boot-phar.php(11): include(‘…’)
    #12 /usr/local/bin/wp(4): include(‘…’)
    #13 {main}
    thrown in /var/www/itzine.ru/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php on line 168

Viewing 1 replies (of 1 total)
  • Hello,

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

    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.

    I hope that helps. Thank you, and looking forward to your update.

    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 1 replies (of 1 total)

The ticket ‘Split: Rank Math sitemap_generate breaks WP Cron (and wp-cli)’ is closed to new replies.