Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heading block "encountered an error" since 6.8.0 #18232

Closed
niaccurshi opened this issue Nov 1, 2019 · 4 comments · Fixed by #18286
Closed

Heading block "encountered an error" since 6.8.0 #18232

niaccurshi opened this issue Nov 1, 2019 · 4 comments · Fixed by #18286
Assignees
Labels
[Block] Heading Affects the Headings Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@niaccurshi
Copy link

Describe the bug
Upon installing the 6.8.0 plugin update, all of my heading blocks returned the "This block has encountered an error and cannot be previewed." error in the editor.

To reproduce
Steps to reproduce the behavior:

  1. Have a site where the headings exist in the editor, with extra classes defined (unsure if it is relevant but all of my headings do have extra classes defined)
  2. Upgrade the plugin to 6.8.0
  3. Check the heading block and see the error returned

Expected behavior
Normal heading block display

@niaccurshi
Copy link
Author

The same happens when adding a new heading block, the following error is created

image

@turansadri
Copy link

I had this in my theme setup (removes the colour palette) and noticed it now breaks the headings after 6.8.0 update.

add_theme_support( 'editor-color-palette' );

However it's easily fixed by giving an empty array instead of nothing.

add_theme_support( 'editor-color-palette', array() );

Hope this helps.

@niaccurshi
Copy link
Author

Thanks this also resolved my issue, would be good to see an empty array applied as default to stop other themes crashing this way!

@alcarazzam
Copy link

Confirmed with a child theme.

@swissspidy swissspidy added [Type] Bug An existing feature does not function as intended [Block] Heading Affects the Headings Block labels Nov 3, 2019
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Heading Affects the Headings Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants