Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#52031 closed defect (bug) (reported-upstream)

Error when clicking Convert to regular blocks

Reported by: jeffabailey's profile jeffabailey Owned by:
Milestone: Priority: normal
Severity: blocker Version: 5.6
Component: Editor Keywords:
Focuses: javascript Cc:


When clicking Convert to regular blocks with a reusable block an error occurs.

This happens within the latest Firefox and Chrome browsers.

WordPress Version: 5.6
Current WordPress Theme: Ryan Pro version 1.3.15
Theme Author: ThinkUpThemes -
Theme URI:
PHP Version: 7.3.7

See this screenshot for context:!AuD4G8fUTARZgbG3btn_datyyOuute4?e=nt1SBu

Uncaught (in promise) TypeError: e.substr is not a function

Redux 9


Change History (19)

#1 @desrosj
4 years ago

#52033 was marked as a duplicate.

#2 @alltha8matters
4 years ago

  • Focuses accessibility added
  • Version set to 5.6

Same problem I am also facing after 5.6 update.

Version 0, edited 4 years ago by alltha8matters (next)

This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.

4 years ago

#4 @ryokuhi
4 years ago

  • Focuses javascript added; accessibility removed

Hello @jeffabailey, welcome on Trac and thanks for reporting this issue!
It was discussed today during the weekly accessibility team's bug scrub.
We are removing the accessibility focus, as this doesn't seem to be an accessibility issue.
Feel free to add the label again if you think that our team can help in solving the issue!

#5 @alltha8matters
4 years ago

Please update on resolving the issue

This ticket was mentioned in Slack in #core by lukecarbis. View the logs.

3 years ago

#7 @lukecarbis
3 years ago

@jeffabailey Thanks for reporting the problem! I tried replicating the problem, but the "Convert to regular blocks" button worked fine for me. Does the issue still happen with all plugins disabled and a default theme (Twenty Twenty-One) activated?

If so, could you share the reusable block that is causing the problem?

#8 @jeffabailey
3 years ago

Hello, I switched the theme to Twenty Twenty-One and tried to convert the reusable block, and the same error occurred.

I saved a new reusable block with just a paragraph, and that worked fine.

I then removed the Ultimate Blocks -> Table of Contents block from my reusable block and saved it. I was then able to use the reusable block without issue.

It appears that the issue has been isolated to the Ultimate Blocks -> Table of Contents block.

#10 @hellofromTonya
3 years ago

  • Component changed from General to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello @jeffabailey,

As you note, the issue is:

isolated to the Ultimate Blocks -> Table of Contents block.

I'd suggest contacting the plugins' Support forum to report the issue with the plugin's block.

I'm going to close this ticket as the issue is isolated to a plugin rather than Core. However, after contacting the plugin's support, if the issue appears to be due to Core, please reopen.

#11 @alltha8matters
3 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened


Its not just related to a specific plugin.
I am using generate blocks and created a reusable blocks through it.

Now if I add that reusable block inside post and clicked on convert to regular block, the block does not get converted to regular.. It stays in reusable condition.

#12 @alltha8matters
3 years ago

Looks like the issue may not be for new WordPress installers. but since we have updated WordPress from the previous version, few of the users are facing this converting to regular blocks issue

#13 @alexius08
3 years ago

Hi @alltha8matters! I'm from the Ultimate Blocks dev team. In our case, the block in question isn't designed to be used as a reusable block. Have you checked it yourself or asked the Generate Blocks dev team if the block you're trying to use doesn't depend on inputs beyond the block's control (e.g. in our case, existing Heading blocks within the page)?

#14 @jeffabailey
3 years ago


It was working fine before the latest version of WordPress.

I understand why it wouldn't work, though. It appears we need WordPress block "templates" rather than reusable blocks, though I could be missing a plugin/feature to handle this.

#15 @rgires
3 years ago

Hi @jeffabailey, @alexius08

I am on the versions

  • wordpress 5.6
  • 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

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

#17 @talldanwp
3 years ago

  • Resolution set to reported-upstream
  • Status changed from reopened to closed

This was reported in the Gutenberg repo where it's being tracked, so closing this trac ticket:

Block editor related issues should ideally be created there instead of in trac, but thanks for flagging the bug.

Last edited 3 years ago by talldanwp (previous) (diff)

#18 follow-up: @rgires
3 years ago

I found another plugin that works very well
it makes the same kind of HTML table in color and converts correctly
getwid -
best regard

#19 in reply to: ↑ 18 @jeffabailey
3 years ago

Replying to rgires:

I found another plugin that works very well
it makes the same kind of HTML table in color and converts correctly
getwid -
best regard

👍, Thanks for trying but I still can't convert my block when using the getwid table of contents block.

Last edited 3 years ago by jeffabailey (previous) (diff)
Note: See TracTickets for help on using tickets.