Issue agter update

#503739
  • Resolved Patrick
    Rank Math free

    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 73

    There 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    The post with the ID 129458 has some incorrect Schema and was missing the type which was causing the fatal error.

    ​​​​​​​I have fixed it by removing the entry and now you can access all the data and add the necessary Schema to that page.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Great thanks! Does this plugin have a XML site map feature? I’m getting an error that from my SEO software that my homepage doesn’t have a sitemap

    Hello,

    Glad that helped.

    It seems like you’re already using sitemap by Rank Math on the path /sitemap_index.xml.

    Can you please confirm what specific error you’re encountering from which software?

    Looking forward to hearing back from 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Issue agter update’ is closed to new replies.