Rankmath Causing Critical Errors On Website

#699947
  • Resolved Anonymous
    Rank Math free

    Trying to create a redirect for a deleted post, received the following email:

    Error Details
    =============
    An error of type E_ERROR was caused in line 49 of the file /home/u888913749/domains/makedrinks.org/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/u888913749/domains/makedrinks.org/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-db.php:49
    Stack trace:
    #0 /home/u888913749/domains/makedrinks.org/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-db.php(49): array_map()
    #1 /home/u888913749/domains/makedrinks.org/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-table.php(325): RankMath\Redirections\DB::get_counts()
    #2 /home/u888913749/domains/makedrinks.org/public_html/wp-admin/includes/class-wp-list-table.php(504): RankMath\Redirections\Table->get_views()
    #3 /home/u888913749/domains/makedrinks.org/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/views/main.php(54): WP_List_Table->views()
    #4 /home/u888913749/domains/makedrinks.org/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-page.php(259): include_once(‘/home/u88891374…’)
    #5 /home/u888913749/domains/makedrinks.org/public_html/wp-includes/class-wp-hook.php(324): RankMath\Admin\Page->display()
    #6 /home/u888913749/domains/makedrinks.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /home/u888913749/domains/makedrinks.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/u888913749/domains/makedrinks.org/public_html/wp-admin/admin.php(259): do_action()
    #9 {main}
    thrown

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

    We apologize for the inconvenience you’re experiencing with Rank Math causing critical errors on your website. It seems that you are encountering a fatal error related to the redirections module of Rank Math.

    The error message indicates that there is an issue with the array_map function in the class-db.php file of the redirections module. This could be due to a conflict or an issue with the data being processed.

    To address this, we recommend updating your Rank Math plugin to the latest version. If you are already using the latest version, please try deactivating and reactivating the plugin to see if that resolves the issue.

    If the problem persists after updating or reactivating the plugin, please consider reaching out to our dedicated support team by clicking on the “Support” button within the Rank Math plugin. Our team is available 24/7, 365 days a year and will be happy to assist you in resolving this critical error.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue for you.

    Sources:
    How to Setup Rank Math SEO Plugin Properly
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    WordPress Permalink Structure & Changing Individual URLs » Rank Math

    Anonymous
    Rank Math free

    I have deactivated and reactivated as instructed … now ALL of my redirections have diappeared. LITERALLY YEARS WORTH! How do I recover them???

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    Deactivating and Reactivating Rank Math will not delete your Redirection tables. Even deleting the plugin will not do so. This is because the data is stored in the database, but can get deleted if you have clicked the Delete Redirections button from WordPress Dashboard > Rank Math > Status & Tools > Database Tools > Delete Redirections Rules.

    If you have a backup of your database you can restore it and the rules will be restored. You can also reach your hosting provider to restore a backup of your site in case you don’t have a backup.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    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 ‘Rankmath Causing Critical Errors On Website’ is closed to new replies.