-
I updated the plugin and now have this issue when I create a new blog:
[28-Dec-2022 16:30:36 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /www/fitppl_502/public/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}(‘a:7:{s:5:\\\\\\\\\\\\…’)
#1 /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php(74): array_filter(Array, Object(Closure))
#2 /www/fitppl_502/public/wp-includes/class-wp-hook.php(308): RankMath\Schema\Frontend->add_schema(Array, Object(RankMath\Schema\JsonLD))
#3 /www/fitppl_502/public/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array)
#4 /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array(‘rank_math/json_…’, Array)
#5 /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(150): RankMath\Schema\JsonLD->do_filter(‘json_ld’, Array, Object(RankMath\Schema\JsonLD))
#6 /www/fitppl_502/public/wp-includes/class-wp-hook.php(308): RankMath\Schema\JsonLD->json_ld()
#7 /www/fitppl_502/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#8 /www/fitppl_502/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#9 /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array(‘rank_math/head’, Array)
#10 /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(156): RankMath\Frontend\Head->do_action(‘head’)
#11 /www/fitppl_502/public/wp-includes/class-wp-hook.php(308): RankMath\Frontend\Head->head(”)
#12 /www/fitppl_502/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#13 /www/fitppl_502/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#14 /www/fitppl_502/public/wp-includes/general-template.php(3043): do_action(‘wp_head’)
#15 /www/fitppl_502/public/wp-content/themes/uncode-child/header.php(38): wp_head()
#16 /www/fitppl_502/public/wp-includes/template.php(783): require_once(‘/www/fitppl_502…’)
#17 /www/fitppl_502/public/wp-includes/template.php(718): load_template(‘/www/fitppl_502…’, true, Array)
#18 /www/fitppl_502/public/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#19 /www/fitppl_502/public/wp-content/themes/uncode/single.php(9): get_header()
#20 /www/fitppl_502/public/wp-includes/template-loader.php(106): include(‘/www/fitppl_502…’)
#21 /www/fitppl_502/public/wp-blog-header.php(19): require_once(‘/www/fitppl_502…’)
#22 /www/fitppl_502/public/index.php(17): require(‘/www/fitppl_502…’)
#23 {main}
thrown in /www/fitppl_502/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 73There is a PHP error in the code on line 73 of the “class-frontend.php” file. The error message states that there is an attempt to access an offset of a string as if it were an array. This suggests that there is a problem with the way an array is being handled in the code. It could be that an incorrect variable or index is being used, or that the variable being used is not an array at all. To fix this error, you will need to examine the code on line 73 and determine the cause of the problem. It might be helpful to check for any syntax errors or typo’s in the code, as well as to ensure that the correct variables are being used.
This is the blog: https://fitppl.com/why-protein-powder-without-stevia-is-important-for-health/
Can you fix this? Login below in sensitive data
The ticket ‘Issue agter update’ is closed to new replies.