Fatal Error

#823550
  • Resolved Rj
    Rank Math free

    I’m getting fatal error on some of my WooCommerce Products.Below is the error message. can anyone help me resolve this?

    I will appreciate any help.

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php:73 Stack trace: #0 [internal function]: RankMathSchemaFrontend->RankMathSchema{closure}() #1 /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php(74): array_filter() #2 /data/www/staging-26/html/wp-includes/class-wp-hook.php(324): RankMathSchemaFrontend->add_schema() #3 /data/www/staging-26/html/wp-includes/plugin.php(256): WP_Hook->apply_filters() #4 /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(106): apply_filters_ref_array() #5 /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(149): RankMathSchemaJsonLD->do_filter() #6 /data/www/staging-26/html/wp-includes/class-wp-hook.php(324): RankMathSchemaJsonLD->json_ld() #7 /data/www/staging-26/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /data/www/staging-26/html/wp-includes/plugin.php(565): WP_Hook->do_action() #9 /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array() #10 /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMathFrontendHead->do_action() #11 /data/www/staging-26/html/wp-includes/class-wp-hook.php(324): RankMathFrontendHead->head() #12 /data/www/staging-26/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #13 /data/www/staging-26/html/wp-includes/plugin.php(517): WP_Hook->do_action() #14 /data/www/staging-26/html/wp-includes/general-template.php(3050): do_action() #15 /data/www/staging-26/html/wp-content/themes/bricks/header.php(7): wp_head() #16 /data/www/staging-26/html/wp-includes/template.php(810): require_once('...') #17 /data/www/staging-26/html/wp-includes/template.php(745): load_template() #18 /data/www/staging-26/html/wp-includes/general-template.php(48): locate_template() #19 /data/www/staging-26/html/wp-content/themes/bricks/single-product.php(7): get_header() #20 /data/www/staging-26/html/wp-includes/template-loader.php(106): include('...') #21 /data/www/staging-26/html/wp-blog-header.php(19): require_once('...') #22 /data/www/staging-26/html/index.php(17): require('...') #23 {main} thrown in /data/www/staging-26/html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 73

Viewing 5 replies - 1 through 5 (of 5 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.

    This would indicate that there is an incorrect Schema markup on the website for the particular page that is throwing this error.

    Could you please share the affected URL so we can check?

    Looking forward to helping you.

    Rj
    Rank Math free

    Yep, sure. Here’s one of the products that throws this error
    https://staging-26.gorillahub.net/services/business-website-plans/premium-website
    Add a url query parameter of debug=true to show error.
    http credentials added to sensitive data.

    Hello,

    It seems the post has some incorrect Schema and is missing the type in the Schema which is causing the error.

    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 post.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Rj
    Rank Math free

    That solved the issue. I just have a question, what’s causing this issue so I can prevent it.

    Hello,

    You might have created a schema template or added a custom schema whose @type property on the schema markup doesn’t match the schema guidelines.

    Our plugin cannot parse unidentifiable types in the markup.

    It seems that you’re currently using the Rank Math PRO plugin, but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com so we can locate your account and verify it?

    We look forward to helping you.

    Thanks.

    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 ‘Fatal Error’ is closed to new replies.