Redirections is not working

#851809
  • Resolved Zoey Zhang
    Rank Math free

    my site is x-plasticparts.com.
    There is something wrong with the redirection function.

    Following this the error message from my email, could you help me check?

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

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

    We apologize for the issue you are facing with the redirection function on your site. The error message you provided indicates that there might be a problem with the database tables related to the redirection module in Rank Math.

    To resolve this issue, we recommend checking if any database tables are missing. You can do this by following these steps:

    1. Navigate to Rank Math SEO → Status & Tools → Database Tools in your WordPress dashboard.
      Navigate to Database Tools

    2. If the Database Tools option is unavailable, enable Advanced Mode at the top-right area of the screen.

    3. Click on Re-create Missing Database Tables to restore any missing tables.
      Re-create Missing Database Tables

    After performing these steps, check if the redirection function is working correctly. If the problem persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for bringing this concern to our attention!

    Sources:
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math

    Hello,

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

    Please make sure you’re using the latest version of the Rank Math plugin on your website: https://rankmath.com/changelog/free/

    Once done, 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 is not working’ is closed to new replies.