Redirection is not working

#731733
  • Resolved Achinta Mitra
    Rank Math free

    Hello,

    I’ve tried adding a redirection on my site https://www.tiecas.com, but each time I got an error that says, “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    Below is the admin email I received.

    How can I fix this problem?

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Rank Math SEO.

    First, visit your website (https://www.tiecas.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.tiecas.com/wp-admin/admin.php?page=rank-math-redirections) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://www.tiecas.com/wp-login.php?action=enter_recovery_mode&rm_token=nfOlabyOJ2XZ4FSDojcaAs&rm_key=rTTrhJA5ZYUjpPcr2wE8ta

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.4.2
    Active theme: Breakdance Zero Theme (version 1.0.0)
    Current plugin: Rank Math SEO (version 1.0.211)
    PHP version 8.1.27

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

Viewing 3 replies - 1 through 3 (of 3 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, it seems that there’s a corrupted redirection, for which it is throwing a critical error.

    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 Reinelle,

    Thank you very much for replying with instructions and the URL to the article.
    Your fix worked!

    I’m marking this as resolved.

    Regards,

    Hello,

    We’re delighted to hear that this issue has been resolved. We appreciate your feedback.

    This ticket will be closed now, but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you again.

    Thank you for choosing Rank Math and have a wonderful day!

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

The ticket ‘Redirection is not working’ is closed to new replies.