Critical error on website

#868829
  • Dear Support Team,

    I have a critical error on my website. Probably caused by Rankmath. When I deactivate rankmath, the error is no longer present. The critical error only affects the portfolio category pages. All other pages work fine. Do you have an idea or solution to fix the problem?

    I am using WordPress version 6.6.1 and the Edge Maison Theme version 1.10

    thank you for your help,
    Rainer

    Here is also the excerpt from the debug.log

    [04-Sep-2024 10:59:28 UTC] PHP Fatal error: Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /html/wordpress/wp-includes/formatting.php:4482
    Stack trace:
    #0 /html/wordpress/wp-includes/formatting.php(4482): ltrim(Object(WP_Error))
    #1 /html/wordpress/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(217): esc_url(Object(WP_Error))
    #2 /html/wordpress/wp-includes/class-wp-hook.php(324): RankMathOpenGraphFacebook->url(Object(RankMathOpenGraphFacebook))
    #3 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #4 /html/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #5 /html/wordpress/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array(‘…’, Array)
    #6 /html/wordpress/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): RankMathOpenGraphOpenGraph->do_action(‘…’, Object(RankMathOpenGraphFacebook))
    #7 /html/wordpress/wp-includes/class-wp-hook.php(324): RankMathOpenGraphOpenGraph->output_tags()
    #8 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #9 /html/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #10 /html/wordpress/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array(‘…’, Array)
    #11 /html/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMathFrontendHead->do_action(‘…’)
    #12 /html/wordpress/wp-includes/class-wp-hook.php(324): RankMathFrontendHead->head(”)
    #13 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #14 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #15 /html/wordpress/wp-includes/general-template.php(3065): do_action(‘…’)
    #16 /html/wordpress/wp-content/themes/maison/header.php(13): wp_head()
    #17 /html/wordpress/wp-includes/template.php(810): require_once(‘…’)
    #18 /html/wordpress/wp-includes/template.php(745): load_template(‘…’, true, Array)
    #19 /html/wordpress/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #20 /html/wordpress/wp-content/themes/maison/page.php(4): get_header()
    #21 /html/wordpress/wp-includes/template-loader.php(106): include(‘…’)
    #22 /html/wordpress/wp-blog-header.php(19): require_once(‘…’)
    #23 /html/wordpress/index.php(17): require(‘…’)
    #24 {main}

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 ‘Critical error on website’ is closed to new replies.