Version 1.0.219 bug with TOC block

#806448
  • Resolved Anonymous
    Rank Math free

    After upgrading RM to v. 1.0.219 i have following error on posts with RM TOC block:
    Warning: Undefined array key “titleWrapper” in /home/platne/serwer108740/public_html/autoinstalator/serwer108740.lh.pl/wordpress1014/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php on line 103
    This appears on frontend and in the editor.
    Rolling back Rank Math to version 1.0.218 everything is OK.
    This errors apears only od posts using RM TOC block.

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

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

    We have 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 don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Hello,

    We have released a Beta update that fixed the issue.

    Please enable the Beta update by following this guide below:
    https://rankmath.com/kb/version-control/#beta-updates

    beta update

    If you are unable to see an update, please clear Rank Math’s transients from:
    WordPress Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

    You can disable the Beta updates once you update to the latest version and the issue is fixed.

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘Version 1.0.219 bug with TOC block’ is closed to new replies.