URGENT: Critical Error from Rank Math

#503752
  • All worked fine on my Elementor site until a few hours ago. All the pages on my site give a critical error with the exception of the home page and the blog posts.

    This is my main business site and I have forced it into maintenance mode.

    I have contacted Elementor and they believe it’s from your plugin. Also, when I deactivate the plugin, all works fine.

    Uncaught TypeError: Cannot access offset of type string on string in /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php:73
    Stack trace:

    Here is the full error
    ================

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Uncaught TypeError: Cannot access offset of type string on string in /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php:73
    Stack trace:
    #0 [internal function]: RankMathSchemaFrontend->RankMathSchema{closure}()
    #1 /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php(74): array_filter()
    #2 /home/techievh/public_html/wp-includes/class-wp-hook.php(308): RankMathSchemaFrontend->add_schema()
    #3 /home/techievh/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters()
    #4 /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array()
    #5 /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(150): RankMathSchemaJsonLD->do_filter()
    #6 /home/techievh/public_html/wp-includes/class-wp-hook.php(308): RankMathSchemaJsonLD->json_ld()
    #7 /home/techievh/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #8 /home/techievh/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #9 /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array()
    #10 /home/techievh/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(156): RankMathFrontendHead->do_action()
    #11 /home/techievh/public_html/wp-includes/class-wp-hook.php(308): RankMathFrontendHead->head()
    #12 /home/techievh/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #13 /home/techievh/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #14 /home/techievh/public_html/wp-includes/general-template.php(3043): do_action()
    #15 /home/techievh/public_html/wp-content/themes/hello-elementor/header.php(21): wp_head()
    #16 /home/techievh/public_html/wp-includes/template.php(783): require_once(‘/home/techievh/…’)
    #17 /home/techievh/public_html/wp-includes/template.php(718): load_template()
    #18 /home/techievh/public_html/wp-includes/general-template.php(48): locate_template()
    #19 /home/techievh/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header()
    #20 /home/techievh/public_html/wp-includes/template-loader.php(106): include(‘/home/techievh/…’)
    #21 /home/techievh/public_html/wp-blog-header.php(19): require_once(‘/home/techievh/…’)
    #22 /home/techievh/public_html/index.php(17): require(‘/home/techievh/…’)
    #23 {main}
    thrown

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    It seems some of your posts has some incorrect Schema and is missing the type in the Schema which is causing the critical error.

    This issue is most likely coming from an incorrect Schema markup on those affected posts. To get around this issue, you may need to get rid of any entry that starts with rank_math_schema_ under the postmeta table in your database for the affected the posts.

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

The ticket ‘URGENT: Critical Error from Rank Math’ is closed to new replies.