Your site doesn’t include support for the Table of Contents

#779195
  • Resolved Javier Ruiz Jiménez
    Rank Math free

    After upgrading to WordPress Version: 6.5 and using Rank Math SEO (1.0.216) FREE:

    Rank Math’s Table of Contents Block is no longer available in existing posts or new ones.

    In existings posts it shows (in edit mode for Block Editor):

    Your site doesn’t include support for the Table of Contents by Rank Math block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.

    Install Table of Contents by Rank Math
    Keep as HTML

    If clicking on “Install Table of Contents by Rank Math”, then the whole Rank Math plugin is removed.

    In new pages (in edit mode for Block Editor): the RANK MATH section of blocks only shows:
    – FAQ by Rank Math
    – HowTo by Rank Math
    – Schema by Rank Math

    (the page already has HowTo inserted so that one is disabled for new insertion)

    Thanks

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

    I apologize for the inconvenience you are facing with the Table of Contents block in Rank Math SEO after upgrading to WordPress Version 6.5.

    It seems like there might be an issue with the availability of the Table of Contents block by Rank Math in your existing posts and new ones. This issue could be related to the plugin version or compatibility.

    To address this problem, please follow these steps:

    1. For Existing Posts:

      • If you see the message “Your site doesn’t include support for the Table of Contents by Rank Math block,” you can try converting it to a Custom HTML block temporarily.
      • You can also try re-installing the Rank Math plugin to ensure that the Table of Contents block is available.
    2. For New Pages:

      • If you are unable to find the Table of Contents block in the RANK MATH section of blocks for new pages, please try re-installing the Rank Math plugin to see if it resolves the issue.

    If clicking on “Install Table of Contents by Rank Math” results in the removal of the entire Rank Math plugin, please avoid clicking on it and proceed with re-installing the plugin separately.

    If the issue persists after re-installing the plugin, please let us know by replying to this ticket, and we will further investigate the matter to assist you effectively.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue for you.

    Kind regards.

    Sources:
    How to Add Rank Math’s Table of Contents Block » Rank Math
    Why Isn’t Rank Math Detecting the Table of Contents? » Rank Math
    Score 100/100 With Rank Math Post Tests » Rank Math
    How to Add Rank Math’s Table of Contents Block » Rank Math
    How to Use a Table of Contents to Improve Content Readability » Rank Math

    Hello,

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

    We are not able to replicate the issue with WordPress version 6.5. In this case, please make sure you’re using the latest version of the Rank Math plugin on your website: https://rankmath.com/changelog/free/

    If the issue persists, please follow this guideline to check if any of your plugins/themes are conflicting with Rank Math: https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hi,

    I have checked in another installation, same problem Table of Contents not available.

    And I am not the only one:

    See https://support.rankmath.com/ticket/table-of-contents-issue-3/

    I will debug and let you know.

    I can confirm that after enabling Troubleshooting Mode and ONLY Rank Math, the Table of Contents is still NOT available.

    Hello,

    We tested this on a default installation with WordPress 6.5 and the latest version of the Free plugin and the TOC block is working fine without any issues as you can see here: https://i.rankmath.com/v/VD9QLe

    If your website doesn’t support the TOC block it could be because of an incompatible theme, plugin or custom code on the website.

    Don’t hesitate to get in touch if you have any other questions.

    My website support TOC previously but for now it show this message for posted blogs “Your site doesn’t include support for the “rank-math/toc-block” block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.” and for new post I am not able to find TOC by rankmath.

    Siddharth Singh are you using Oxygen?

    yes

    any issue with oxygen ? I am using it more than a year it never show any issue.

    Hello,

    Our developers are taking a look at the situation with the TOC block and the Oxygen theme, which has been reported.

    The initial reply didn’t indicate that the theme used is Oxygen so we tested this with a default installation. It’s always advisable when reporting a bug or conflict to let our team know what are the bare minimum requirements we should use to replicate it.

    We will provide an update on this matter when we hear back from our developers.

    Thank you.

    Oxygen doesn’t use any theme.

    Hello,

    Yes, we are aware of that. It disables the theming system entirely.

    We referred to it as a theme as it controls the layout of the website, although inaccurately, that is not relevant as the only thing relevant here is the way Oxygen handles post content which we need to revise with the latest updates made in WordPress and our plugin.

    Thank you.

    Hello,

    We were able to reproduce this issue on our setup and identified the source of the problem as originating from the Oxygen plugin. In the plugins/oxygen/component-framework/component-init.php file, the plugin has used the template_directory filter, which returns a fake value. Here is the code:

    
    function ct_disable_theme_load( $stylesheet_dir ) {
    
    	// disable theme entirely for now
    	return "fake";
    
    	if ( isset( $_GET["has_oxygen_template"] ) && $_GET["has_oxygen_template"] ) {
    		return $stylesheet_dir;
    	}
    
    	if ( defined("HAS_OXYGEN_TEMPLATE") && HAS_OXYGEN_TEMPLATE ) {
    		return "";
    	}
    	else {
    		return $stylesheet_dir;
    	}
    }
    // Need to remove for both parent and child themes
    add_filter("template_directory", "ct_disable_theme_load", 1, 1);
    

    Due to this code, the path of the block script registered using the editorScript property in the block.json file is being changed to http://rankmath.local/wp-content/themes/oxygen-is-not-a-theme/Local%20Sites/rankmath/app/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/assets/js/index.js?ver=1.0.217-beta, resulting in a 404 error. You will also see this error in the browser’s console on your site.

    An example of the editorScript property can be found here: https://github.com/rankmath/seo-by-rank-math/blob/master/includes/modules/schema/blocks/toc/block.json#L9-L10

    I believe this issue is not specific to the Rank Math plugin and could potentially cause problems with all plugins that use block.json to register blocks.

    Please forward this to the Oxygen Builder team so they can take a look at this issue. We will also try to get in touch with them.

    Hope that helps.

    Thanks Pratik

    I have sent your detailed analysis to the Oxygen Facebook support group.

    It sounds like you’re experiencing compatibility issues between WordPress version 6.5 and Rank Math SEO plugin version 1.0.216. This issue seems to affect the availability of the Table of Contents block in both existing posts and new ones.

    One workaround you can try is to manually insert the Table of Contents using custom HTML blocks until the compatibility issue is resolved. Additionally, you may want to reach out to the Rank Math support team for assistance or to report the issue, as they may have insights or updates regarding a fix for this compatibility issue.

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘Your site doesn’t include support for the Table of Contents’ is closed to new replies.