how can i solve this issue Warning: Undefined array key “titleWrapper” in

#805586
  • Resolved Anonymous
    Rank Math free

    how can i solve this issue Warning: Undefined array key “titleWrapper” in

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    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.

    Thank you.

    Anonymous
    Rank Math free

    It impacts lots of sites and exposes the internal installation path of WordPress in your OS if you are using “Table of Contents by Rank Math” blocks in your posts. I am worried that it may bring some security concerns.

    Unfortunately, I am the one who has no permission to modify the PHP file mentioned in the previous comment. Therefore, the only thing I can do is to deactivate Rank Math SEO plugin for now until this issue is fixed.

    Hello,

    This will not expose any sensitive information.

    Having said that, this was fixed internally and the improved code with this fix will be released in the upcoming release of the Free plugin.

    Thank you.

    Anonymous
    Rank Math free

    how to remove that ccode please guide me step

    Hello,

    You can edit the plugin files in WP Dashboard > Plugins > Plugin File Editor and edit the file mentioned by my colleague. If you are not sure, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hi Jaideep,

    The solution that you provided works for me.
    Thanks a lot!

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

The ticket ‘how can i solve this issue Warning: Undefined array key “titleWrapper” in’ is closed to new replies.