• Resolved Developer at EA

    (@darrelsmith9780)


    One of my client website is getting this error on single post page, I have updated RankMath today and this error is popping up in the beginning of each post. pls provide solution for this

    Error:

    Warning: Undefined array key “titleWrapper” in?/home/u971965409/domains/entertainmentart.in/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php?on line?103

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same issue everywhere we used the Table of Content block. The error is the same.

    • This reply was modified 6 months, 1 week ago by stigimotions.
    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @darrelsmith9780,
    ?
    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
    ?
    We have already identified this issue and reported it to our development team. We will include a fix in a future update of the plugin.
    ?
    For now, please replace the code in the line?103?of this specific file:
    seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php?
    ?
    with the code below:
    ?
    $title_wrapper = isset( $parsed_block['attrs']['titleWrapper'] ) && in_array( $parsed_block['attrs']['titleWrapper'], $allowed_tags, true ) ? $parsed_block['attrs']['titleWrapper'] : 'h2';
    ?
    ?
    That notice should go away after that.
    ?
    Hope that helps.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @stigimotions,
    ?
    Thank you for contacting Rank Math support.
    ?
    We have already identified this issue and reported it to our development team. We will include a fix in a future update of the plugin.
    ?
    For now, please replace the code on line 103 of this specific file?seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php?with the code below:
    ?
    $title_wrapper = isset( $parsed_block['attrs']['titleWrapper'] ) && in_array( $parsed_block['attrs']['titleWrapper'], $allowed_tags, true ) ? $parsed_block['attrs']['titleWrapper'] : 'h2';
    ?
    That notice should go away.
    ?
    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    When do you expect this fix to be merged into an official release?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @themightymo,
    ?
    We have already fixed the issue in the latest beta update and the stable version will be released soon. If you want to upgrade to the Beta version, you can follow this guide:?https://rankmath.com/kb/version-control/#beta-updates
    ?
    Please do not hesitate to let us know if you need our assistance with anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting Error After Today’s Update of RankMath’ is closed to new replies.