Redirections critical problem

#860885
  • Resolved Wojciech Ziółkowski
    Rank Math business

    Dear Rank Math team,

    I have a critical problem with redirections, and I have no idea how to fix it.
    Website https://jztl.pl/ works properly, but anyway, some of pages fall down from index google, and in GSC i have a info that is because of redirections.

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

    Best regards
    Wojtek Ziolkowski

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

    We apologize for the issue you are facing with redirections on your website. It seems that you are encountering a critical error related to the Rank Math plugin, specifically in the redirections module.

    The error message indicates that there is a problem with the array_map() function, which is likely due to a null value being passed instead of an array. This can happen if there are no redirection rules set up or if there is a problem retrieving them from the database.

    To resolve this issue, we recommend the following steps:

    1. Update Rank Math: Ensure that you are using the latest version of the Rank Math plugin. Updates often include bug fixes and improvements that may resolve your issue.
    2. Check Redirection Rules: Navigate to the Redirections section in your Rank Math settings and verify if there are any existing redirection rules. If not, try adding a new rule to see if it resolves the error.
    3. Debugging: You can also use Rank Math’s debugging features to diagnose any issues further. More information on debugging can be found in our documentation here.
    4. Check .htaccess File: If you have access to your server files, check your .htaccess file for any conflicting rules that might be causing issues with redirections. You can edit this file through the Rank Math plugin by going to WordPress Dashboard → Rank Math SEO → General Settings → Edit .htaccess.
      edit .htaccess

    If the problem persists after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.

    Thank you for raising this concern, and we appreciate your patience as we work to resolve it!

    Sources:
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Random URLs Redirecting Even When No Redirect Was Created » Rank Math

    Hello,

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

    Please head over to your WordPress Dashboard > Rank Math > Status & Tools > Database Tools and click the Recreate Missing Database Tables button and see if that works for you: https://rankmath.com/kb/rank-math-status-and-tools/#recreate-missing-database-tools

    Please note that some options are only available when you enable the Advanced Mode in Rank Math. If Database Tools is not showing, please switch to the Advanced Mode: https://rankmath.com/kb/switch-from-easy-to-advanced-mode/

    Let us know how it goes. Looking forward to helping you.

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

The ticket ‘Redirections critical problem’ is closed to new replies.