Support » Plugin: Advanced Gutenberg Blocks » Installed blocks not getting de-activated

  • Resolved Chris Rault

    (@connectr)


    Hi Max,

    Really nice work on the plugin 🙂

    I’m testing it out on one of my local installs and the tried deactivating a bunch of blocks, but when I go to the editor, the blocks I deactivated as still being displayed.

    Could it be an issue introduced in the latest Gutenberg update?

    Also, when you go to the Demo page, all that is displayed is an empty box.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Maxime BERNARD-JACQUET

    (@maximebj)

    Hi !

    I thinks it’s the way I load my script to deactivate blocks : I’ve spoke with Riad (one of the core dev) and he told me back then than they would change the way blocks are registered with Gutenberg when it loads.

    I’ll take a look closer to fix this !

    I’ve found the issue and will publish a fix in the next days !

    Thanks for your help.

    Hi Max,

    I just installed the plugin and found the same problem. It’s on WP 5.0.3. I have deactivated some blocks, but they are available when editing or creating posts.

    This is the error from the console:
    Uncaught (in promise) TypeError: deactivatedBlocks.forEach is not a function
    at deactivator.build.js?ver=c90e878:6
    (anonymous) @ deactivator.build.js?ver=c90e878:6
    Promise.then (async)
    (anonymous) @ deactivator.build.js?ver=c90e878:1

    Awesome plugin BTW, thanks!

    Plugin Author Maxime BERNARD-JACQUET

    (@maximebj)

    Hi @overwise

    Do you have the issue with the latest version of the plugin?
    It should be fixed from a while now.

    I’ve tested in my next release and it works. I always send an array so, even if there is nothing to display.

    I’m adding a better verification in the next version so it should works everytime.

    Than it might be something in my code that makes a conflict… If I discover anything useful for you I’ll be back to let you know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Installed blocks not getting de-activated’ is closed to new replies.