Title: Fatal error: Uncaught TypeError:
Last modified: April 26, 2025

---

# Fatal error: Uncaught TypeError:

 *  Resolved [Shahidul Islam](https://wordpress.org/support/users/bdkoder/)
 * (@bdkoder)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-40/)
 * `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](https://wordpress.org/support/users/rankmathsupport/)
 * (@rankmathsupport)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-40/#post-18438744)
 * Hello [@bdkoder](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/bdkoder/)
 * (@bdkoder)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-40/#post-18443918)
 * Thanks for your kind respond, it’s asking for paid version.
   What about for free
   users?Thanks.
 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathsupport/)
 * (@rankmathsupport)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-40/#post-18449573)
 * Hello [@bdkoder](https://wordpress.org/support/users/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](https://kinsta.com/blog/wordpress-get-post-id/#1-find-the-id-within-each-posts-url)
   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.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rank Math Support](https://wordpress.org/support/users/rankmathsupport/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-40/#post-18449573)
 * Status: resolved