• Resolved Shahidul Islam

    (@bdkoder)


    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php:73 Stack trace: #0 [internal function]: RankMath\Schema\Frontend->RankMath\Schema{closure}() #1 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php(70): array_filter() #2 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/class-wp-hook.php(324): RankMath\Schema\Frontend->add_schema() #3 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters() #4 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(106): apply_filters_ref_array() #5 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(149): RankMath\Schema\JsonLD->do_filter() #6 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/class-wp-hook.php(324): RankMath\Schema\JsonLD->json_ld() #7 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #9 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array() #10 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMath\Frontend\Head->do_action() #11 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/class-wp-hook.php(324): RankMath\Frontend\Head->head() #12 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #13 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #14 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/general-template.php(3192): do_action() #15 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/themes/astra/header.php(31): wp_head() #16 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/template.php(810): require_once('/home/u15688061…') #17 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/template.php(745): load_template() #18 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/general-template.php(48): locate_template() #19 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header() #20 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-includes/template-loader.php(106): include('/home/u15688061…') #21 /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-blog-header.php(19): require_once('/home/u15688061…') #22 /home/u15688061880282/domains/hiddenDomain.com/public_html/index.php(17): require('/home/u15688061…') #23 {main} thrown in /home/u15688061880282/domains/hiddenDomain.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 73

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @bdkoder,
     
    Thank you for contacting us, and sorry for any inconvenience that might have been caused due to that.
     
    This error indicates that there is an incorrect Schema markup on the website for the particular page that is throwing this error.
     
    In this case, you can try to use the bulk action to add the default schema on your pages: https://rankmath.com/kb/bulk-editing-in-rank-math/#set-schema-markup-to-default-type 
     
    In this way, Rank Math will automatically remove the previous schema markups and will set the default schema that you selected on the Titles & Meta settings.
     
    Let us know how it goes. Looking forward to helping you.

    Thread Starter Shahidul Islam

    (@bdkoder)

    Thanks for your kind respond, it’s asking for paid version.
    What about for free users?
    Thanks.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @bdkoder,
     
    The bulk edit feature is currently only available for PRO users.
     
    In this case, you’ll have to manually remove the corrupted schema in your website database.
     
    Before you continue, please conduct a full backup of your database.
     
    Please access your database panel (PhpMyAdmin), open the database table wp_postmeta, and filter only the post_id column. In your case, filter the post ID of the affected post/page to reveal the schema meta from our plugin. You should see a meta_key like this: rank_math_schema_Article.
     
    When you see that, delete it and the issue should be resolved.
     
    Hope that helps.

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

The topic ‘Fatal error: Uncaught TypeError:’ is closed to new replies.