• Resolved Lovro Hrust

    (@lovor)


    Hello, RankMath blocks in block editor are not showing in block inserter.
    I tried fresh WordPress instalation and they do show there. I disabled all plugins except RankMath and changed theme to twenty-twenty-three, without success.
    I started to debug with xdebug and concluded that composer’s autoload.php is not loading and not running class-blocks.php at all.
    There are no error messages in browser console while block editor is open.
    The issue persists on my local installation as well as on server.
    I even tried reinstalling and rolling the plugin to previous version.
    I am using custom-built (mine) FSE theme if that is of concern. I am running PHP 8.1.9 on apache server v 2.54.2 locally, but on production site is NGINX.

    EDIT: I made full database reset (wp db reset) and blocks appeared. I conclude that it is connected to some database option, but I need more help.

    • This topic was modified 1 year, 4 months ago by Lovro Hrust.
    • This topic was modified 1 year, 4 months ago by Lovro Hrust.
    • This topic was modified 1 year, 4 months ago by Lovro Hrust.
    • This topic was modified 1 year, 4 months ago by Lovro Hrust.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Lovro Hrust

    (@lovor)

    I managed to find the cause by debugging, it is “Schema (structured data)” module being disabled. I tried to enable it, but spinner just keeps spinning, never finishing.

    In debuggin this, I found REST endpoint is missing:
    https://localhost/wp-json/rankmath/v1/saveModule

    • This reply was modified 1 year, 4 months ago by Lovro Hrust.
    Thread Starter Lovro Hrust

    (@lovor)

    I solved all. REST endpoint was not working because database was transferred and permalinks were not flushed.

    For plugin authors: I suggest you write somewhere that activating Schema (structured data) module is necessary to have blocks in block editor. This is unexpected behavior and not intuitive, it is not easy to guess why blocks are missing.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lovor,

    Thank you for contacting the support.

    We are glad that you were able to figure this out and fix the issue. All of our blocks are used to either generate the Schema or add the Schema data to the content and that’s why the Schema module needs to be enabled to use them.

    Having said that, we have forwarded your suggestion to the concerned team, who will include this info in our knowledge base guides.

    Don’t hesitate to get in touch in case you need our help with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blocks missing’ is closed to new replies.