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