Rank math plugin causing errors

#947378
  • Resolved Dawood Iqbal
    Rank Math free

    My website shows critical issue using rank math as follows:
    WordPress version 6.7.1
    Active theme: Kadence (version 1.2.14)
    Current plugin: Rank Math SEO (version 1.0.234.1)
    PHP version 8.1.27

    Error Details
    =============
    An error of type E_ERROR was caused in line 50 of the file /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-db.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-db.php:50
    Stack trace:
    #0 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-db.php(50): array_map()
    #1 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-table.php(337): RankMath\Redirections\DB::get_counts()
    #2 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-admin/includes/class-wp-list-table.php(510): RankMath\Redirections\Table->get_views()
    #3 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/views/main.php(50): WP_List_Table->views()
    #4 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-page.php(272): include_once(‘/home/u48647280…’)
    #5 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-includes/class-wp-hook.php(324): RankMath\Admin\Page->display()
    #6 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/u486472804/domains/fancytextgenerator.info/public_html/wp-admin/admin.php(259): do_action()
    #9 {main}
    thrown

Viewing 1 replies (of 1 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.

    From the error log, it seems that the Redirections tables were not created in your site’s database.

    Please check if the issues get fixed by re-creating the missing database tables.

    You can re-create them by going to WordPress Dashboard > Rank Math > Status & Tools > Database Tools.

    Here’s a guide that you can follow:
    https://rankmath.com/kb/recreate-missing-database-tables/

    Let us know how this goes.

    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 ‘Rank math plugin causing errors’ is closed to new replies.