when I add a block from my style pack, I get an error ‘This block has encountered an error and cannot be previewed.’. If you update and then show the page, the actual block shows, but with default settings.
in console I see ‘The above error occurred in the <Lt> component: Lt@https://abc.co.uk/wp-content/plugins/wicked-block-builder/dist/generator.js?ver=1.4.3:1:70084 and a bunch of stuff after
any ideas?
]]>Because of how you are running the callback for dynamic blocks, they will only display once on a page, regardless of how many times the block actually appears in the content.
classes/class-block.php, line 434
:
locate_template( "wbb-blocks/{$this->slug}.php", true, true, array(
That second true
tells WordPress to only include the file once, regardless of how many times it is actually called. Changing to false
allows block to work as expected.
Hello,
Created blocks didn’t show up under local develop enviroment like docker.
Works correctly and shows in block list when in a live site.
Will there be a solution?
We do our very best to respond to all support requests but please keep in mind that we’re a small team—the more you can help us, the more we can help you.
Before posting a new support request, please consider the following:
Doing these pre-checks helps us by reducing the number of questions that have already been answered so that we can focus on the tickets that need our attention the most (such as bugs).
Thank you!
]]>