• slimmilkduds

    (@slimmilkduds)


    Hi, getting this in console when opening editor (new post):

    index.js:2 Block validation: Expected tag namediv, instead sawul`.
    (anonymous) @ index.js:2
    index.js:2 Block validation: Block validation failed for advanced-gutenberg-blocks/summary (Object).

    Expected:

    <div class=”wp-block-advanced-gutenberg-blocks-summary”><p class=”wp-block-advanced-gutenberg-blocks-summary__title”>Table of contents</p><div class=”wp-block-advanced-gutenberg-blocks-summary__fold”><svg xmlns=”https://www.w3.org/2000/svg&#8221; width=”24″ height=”24″ viewbox=”0 0 24 24″ fill=”none” stroke=”currentColor” stroke-width=”2″ stroke-linecap=”round” stroke-linejoin=”round” class=”feather feather-chevron-up”><polyline points=”18 15 12 9 6 15″></polyline></svg></div><ul role=”directory” class=”wp-block-advanced-gutenberg-blocks-summary__list”><li><a href=”#1-heading”>1 Heading</a><ul></ul></li><li><a href=”#2-another-heading”>2 Another Heading</a><ul><li><a href=”#21-subheading”>2.1 subheading</a><ul></ul></li></ul></li></ul></div>

    Actual:

    <div class=”wp-block-advanced-gutenberg-blocks-summary”><p class=”wp-block-advanced-gutenberg-blocks-summary__title”>Table of contents</p><ul role=”directory” class=”wp-block-advanced-gutenberg-blocks-summary__list”><li><a href=”#1-heading”>1 Heading</a><ul></ul></li><li><a href=”#2-another-heading”>2 Another Heading</a><ul><li><a href=”#21-subheading”>2.1 subheading</a><ul></ul></li></ul></li></ul></div>`

    Running latest version of plugin and wordpress.

    Cheers!

Viewing 1 replies (of 1 total)
  • Plugin Author maximebj

    (@maximebj)

    Hi,

    Can you delete and redo the block ? It’s maybe since I’ve put the arraow button to fold / expand.

    Gutenberg sees something new he didn’t expected.
    Just recreating the block should fix the issue. Save your post, reload the admin page and let me know if the error is still there.

    Thanks !

Viewing 1 replies (of 1 total)
  • The topic ‘Error in summary block’ is closed to new replies.