Error activating Rank Math SEO plugin

#91891
  • Resolved Antonio
    Rank Math free

    Hi,

    I’m trying to activating the plugin but some errors appear and the activation fails.

    The first error was something like “table wp_actionscheduler_actions does not exist”. I’ve created this table, but now I get the following error trace:

    
    ( ! ) Fatal error: Uncaught RuntimeException: Error saving action: Database error. in /app/public/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 75
    ( ! ) RuntimeException: Error saving action: Database error. in /app/public/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 75
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0000	407880	{main}( )	.../plugins.php:0
    2	0.3751	9513224	do_action( )	.../plugins.php:193
    3	0.3751	9513600	WP_Hook->do_action( )	.../plugin.php:478
    4	0.3751	9513600	WP_Hook->apply_filters( )	.../class-wp-hook.php:311
    5	0.3751	9514728	RankMathInstaller->activation( )	.../class-wp-hook.php:287
    6	0.3751	9514728	RankMathInstaller->activate( )	.../class-installer.php:50
    7	0.3879	9565952	RankMathAnalyticsInstaller->install( )	.../class-installer.php:170
    8	0.3916	9570856	as_schedule_recurring_action( )	.../class-installer.php:35
    9	0.3916	9571216	ActionScheduler_ActionFactory->recurring( )	.../functions.php:54
    10	0.3920	9580176	ActionScheduler_ActionFactory->store( )	.../ActionScheduler_ActionFactory.php:105
    11	0.3920	9580176	ActionScheduler_DBStore->save_action( )	.../ActionScheduler_ActionFactory.php:177
    

    It’s possible this error appears due to I’ve clean the database with a plugin. But I don’t know what it’s missing to install this plugin.

    Any help?

    Thanks a lot!

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

    Sorry for any inconvenience that might have been caused due to that.

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

    Please follow these steps to fix the issue:

    1. Take a complete backup of your website
    2. Install this plugin: https://wordpress.org/plugins/code-snippets/
    3. Head over to the Snippets menu in the left sidebar and click Add New
    add new snippet
    4. Give that post any name and copy the below code in the Code field

    add_action( 'init', function() {
    	delete_option( 'schema-ActionScheduler_StoreSchema' );
    } );

    5. Select ‘Only run in administration area’ option and click the Save and Activate button
    run only in admin area wordpress
    6. Open WordPress Dashboard in a new window
    7. Then deactivate recently created snippet from here
    disable snippet
    8. Then activate the Rank Math plugin again
    9. Please disable the Code Snippets plugin if you are not going to use it

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

    Please clear all the cache, including the server after following the above process.

    That should resolve the issue. Thank you.

    Hi, thanks for the immediate response, but I’ve followed the above steps and the issue is not solved yet. I got the same error.

    Hello,

    If that doesn’t help, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I’ve just added the link to access.

    Thanks!

    Hello,

    The fix doesn’t seem to be working on your site. Is it possible to disable all other plugins and switch to a default theme then try this again? You can also create staging/test site which we can access and take a closer look into this issue

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Finally, I had to recreate the entire site :S since I didn’t find a solution. Now the plugin is installed as expected.

    Thanks!

    Sajid Khan
    Rank Math business

    Hello,

    We are super happy that you resolved your issue.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Error activating Rank Math SEO plugin’ is closed to new replies.