There has been a critical error on this website

#776883
  • When I entered my website, I found out there is an error (There has been a critical error on this website.) on this specific URL: My link

    I contacted hosting support, and they said the problem was caused by Rankmath’s free SEO plugin. How do fix this problem?

    Thank you very much.

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

    I’m sorry to hear about the critical error you encountered on your website. If your hosting support mentioned that the issue was caused by Rank Math’s free SEO plugin, it might be due to a conflict with another plugin or theme on your website.

    To resolve this problem, we recommend performing a quick conflict check to confirm if it’s a bug or just a theme/plugin conflict. You can use the Health Check plugin to do this without affecting your website visitors. Here are the steps to follow:

    1. Installing the Health Check Plugin:
      • Log into your WordPress Administrator account and navigate to the dashboard.
      • Go to Plugins in the WordPress menu and then click on Add New.
      • Search for ‘Health Check’ in the search bar and install the Health Check & Troubleshooting plugin.
      • Activate the Health Check plugin.
      • Find the Site Health option by hovering over Tools in the WordPress Menu and clicking on it.

    Performing a conflict check using the Health Check plugin will help identify if there is a conflict causing the critical error on your website. Once you have identified the conflicting plugin or theme, you can take appropriate action to resolve the issue.

    If you need further assistance, feel free to reply to this ticket, and a human agent from our support team will assist you promptly.

    Thank you for bringing this concern to our attention.

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How to Fix Problems While Connecting Account Using Rank Math » Rank Math
    How to Monitor 404 Errors with Rank Math SEO Plugin
    How to Fix 404 Errors with Rank Math SEO Plugin
    Confirming a Theme/Plugin Conflict With Rank Math

    Ok, I tested all plugins with a health check, and it seems that the only time when the problem is fixed is when I disable the rank math plugin. I can not see a conflict with the other plugins.

    Hello,

    Thank you for contacting support.

    Please make sure that you enable the debugging on the website and then trigger the error once again to generate an error log with more information.

    You can enable debugging by following the steps here: https://wordpress.org/documentation/article/debugging-in-wordpress/

    Looking forward to helping you.

    Ok i enabled debugging, and this error was triggered:

    Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /home/localtri/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/class-block.php:64 Stack trace: #0 /home/localtri/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/class-block.php(64): join(‘;’, ‘text-align:cent…’) #1 /home/localtri/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/class-block-faq.php(170): RankMath\Schema\Block->get_styles(Array) #2 /home/localtri/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/class-block-faq.php(225): RankMath\Schema\Block_FAQ::markup(Array) #3 /home/localtri/public_html/wp-includes/class-wp-block.php(258): RankMath\Schema\Block_FAQ->render(Array, ‘\n<div class=”wp…’, Object(WP_Block)) #4 /home/localtri/public_html/wp-includes/class-wp-block.php(244): WP_Block->render() #5 /home/localtri/public_html/wp-includes/class-wp-block.php(244): WP_Block->render() #6 /home/localtri/public_html/wp-includes/blocks.php(1484): WP_Block->render() #7 /home/localtri/public_html/wp-includes/blocks.php(1522): render_block(Array) #8 /home/localtri/public_html/wp-includes/class-wp-hook.php(324): do_blocks(‘<!– wp:generat…’) #9 /home/localtri/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<!– wp:generat…’, Array) #10 /home/localtri/public_html/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:generat…’) #11 /home/localtri/public_html/wp-content/themes/generatepress/content-page.php(73): the_content() #12 /home/localtri/public_html/wp-includes/template.php(792): require(‘/home/localtri/…’) #13 /home/localtri/public_html/wp-includes/template.php(725): load_template(‘/home/localtri/…’, false, Array) #14 /home/localtri/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #15 /home/localtri/public_html/wp-content/themes/generatepress/inc/theme-functions.php(568): get_template_part(‘content’, ‘page’) #16 /home/localtri/public_html/wp-content/themes/generatepress/page.php(34): generate_do_template_part(‘page’) #17 /home/localtri/public_html/wp-includes/template-loader.php(106): include(‘/home/localtri/…’) #18 /home/localtri/public_html/wp-blog-header.php(19): require_once(‘/home/localtri/…’) #19 /home/localtri/public_html/index.php(17): require(‘/home/localtri/…’) #20 {main} thrown in /home/localtri/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/class-block.php on line 64

    I am waiting for your reply.

    Hello,

    Thank you for contacting us and sorry for any inconvenience that this issue might have caused.

    We have released a Beta update that fixed the issue.

    Please enable the Beta update by following this guide below:
    https://rankmath.com/kb/version-control/#beta-updates

    beta update

    If you are unable to see an update, please clear Rank Math’s transients from:
    WordPress Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

    You can disable the Beta updates once you update to the latest version and the issue is fixed.

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

The ticket ‘There has been a critical error on this website’ is closed to new replies.