Hi @jeffabailey! Thanks for letting us know. The content of the Table of Contents block is dynamically generated using the headings present in the page as its input. It isn’t designed to be used as a reusable block, which should be used only when the content of the block would remain unchanged wherever it’s used.
To prevent further occurrences of this error, we’ll disable the ability to turn the Table of Contents into a reusable block in the next version. If you want to reuse the settings for the block in another page, I recommend copying it from the source page and pasting it to the destination page.
If you have further issues with the plugin, please let us know.
Hi @jeffabailey, @alexius08
I am on the versions
wordpress 5.6
ultimate-addons-for-gutenberg.1.20.1.zip
firefox 84.0.2 (64 bits)
and it always has this javascript error when converting a reusable block into a regular block
if I delete the ‘Advanced Table’ block, it works
there was no problem in the previous version of WP 5.5.xxx
error JS
Uncaught (in promise) TypeError: e.substr is not a function
b /wp-includes/js/dist/block-serialization-default-parser.min.js?ver=1768ef183a4597932a52df4c355129c1:2
p /wp-includes/js/dist/block-serialization-default-parser.min.js?ver=1768ef183a4597932a52df4c355129c1:2
s /wp-includes/js/dist/block-serialization-default-parser.min.js?ver=1768ef183a4597932a52df4c355129c1:2
Yr /wp-includes/js/dist/blocks.min.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:3
CONVERT_BLOCK_TO_STATIC /wp-includes/js/dist/reusable-blocks.min.js?ver=d969baba471ea99a0d94fb9fd94d284c:2
e Redux
Do you have a solution?
best regard
romain
-
This reply was modified 5 years, 4 months ago by
rgires.
I do not.
I was told the block wasn’t meant to be created as a block template.
It also worked before the update.
https://ww.wp.xz.cn/support/topic/error-when-clicking-convert-to-regular-blocks/#post-13858276
Hi @jeffabailey! Thanks for letting us know. The content of the Table of Contents block is dynamically generated using the headings present in the page as its input. It isn’t designed to be used as a reusable block, which should be used only when the content of the block would remain unchanged wherever it’s used.
To prevent further occurrences of this error, we’ll disable the ability to turn the Table of Contents into a reusable block in the next version. If you want to reuse the settings for the block in another page, I recommend copying it from the source page and pasting it to the destination page.
If you have further issues with the plugin, please let us know.
Hi @jeffabailey and @rgires! WordPress has released a new version (v5.7) that includes a fix for the issue with reusable blocks. Our previous attempt to fix this issue on our end (v2.4.3) didn’t work well, so I advise everyone to download the latest version of the plugin (v2.4.4), which works with the way the latest WordPress version handles reusable blocks.