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

Console in Editor is showing Block validation: Block validation failed for errors for blocks #69604

Closed
csabarakasz opened this issue Oct 30, 2022 · 5 comments
Labels
[Platform] Atomic [Platform] Simple [Pri] Low [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@csabarakasz
Copy link

csabarakasz commented Oct 30, 2022

Quick summary

When creating a New Post in the Editor, the Browser console is showing a lot of errors for the core/button and core/heading. Example:

CleanShot 2022-10-30 at 13 11 15@2x

This was user reported in 36664175-hc but it was duplicated on a brand new AT/ Simple site as well!

Example error:

Block validation: Block validation failed for `core/button` ( 
Object { name: "core/button", icon: {…}, keywords: (1) […], attributes: {…}, providesContext: {}, usesContext: [], supports: {…}, styles: (2) […], variations: [], save: save(e)
, … }
 ).

Content generated by `save` function:

<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-75 is-style-outline has-custom-font has-space-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#acf5c1">Ep.3 New York Cheese Cake</a></div>

Content retrieved from post body:

<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-75 is-style-outline has-space-mono-font-family has-custom-font" style="font-family:space-mono;"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#acf5c1;">Ep.3 New York Cheese Cake</a></div> [_static:35:23880](https://s0.wp.com/_static/??-eJylkkGOwjAMRS9E6qlAHbEYzVnaxGpdkrjEcYHbE7aIDfLSsvX09fzhtjnPuWKusEWdKQvM2sYJy9w2BWHvT92p+4FJKQYgcbKMMfLN4VXHCJQD3rtEuVvlAN/iLvjwHFCMmK0QF6oPd1VUNMI8p43FSikY9O4Ka6VsZYWxjkbEUlN07ZoqmW3LwqW+3mbkTJH95UMYyj7qqxSrQCCpsGMOXCBxamyLRWvi1rPUDO5vCv/TXz8Mw3nof8/H9Qn4wzPo)

I could find some recent conversations related to these on Slack but no resolution to them: p1666177398717499/1666118126.110079-slack-C029FM1EH

Steps to reproduce

Create a new post. Inspect the site with Console.

What you expected to happen

There wouldn't be any errors

What actually happened

There are errors.

Context

No response

Platform (Simple, Atomic, or both?)

Simple, Atomic

Theme-specific issue?

No.

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

No response

Available workarounds?

No response

Workaround details

No response

@csabarakasz
Copy link
Author

csabarakasz commented Nov 2, 2022

This turned out to be a core issue ( p1667371994389059-slack-C03TY6J1A ) so we can probably close this. I am gonna wait for a second opinion.

@kavyagokul
Copy link

📌 SCRUBBING : RESULT

  • Tested on P2 - Could Not Replicate
  • Tested on Simple - Could Not Replicate
  • Tested on AT - Could Not Replicate
  • Tested on Self-hosted - Could Not Replicate

📌 FINDINGS/SCREENSHOTS/VIDEO

  • Unable to replicate on freshly reset atomic site, Fresh site on Jurassic ninja, and fresh simple site.

📌 ACTIONS

  • Await author feedback

📌 Message to Author
Hi @csabarakasz ! Can you add some more details about the environment on which you were able to replicate this? Mainly

  • Was this a new site?
  • Any plugins or themes installed
  • Browser/OS version
  • Whether it did the same in incognito/private browsing.

@csabarakasz
Copy link
Author

CleanShot 2022-11-17 at 00 09 19

Was this a new site?
^^ This was an existing Atomic site on the Business plan, but I could replicate the exact same issue on a brand new Simple site with the Free plan as well.

Any plugins or themes installed
Tried Zoologist (FSE), Twenty Nineteen (Classic), Twenty Eleven (older) -> Same result.

Browser/OS version
Firefox 106.0.5 (64-bit) - macOS Monterey Version 12.6 (21G115) MacBook Pro (13-inch, M1, 2020) Chip Apple M1

Whether it did the same in incognito/private browsing.
Same behavior in incognito mode.


I think this is a core behavior: WordPress/gutenberg#13021

@cuemarie
Copy link

cuemarie commented May 3, 2023

This may be expected, see WordPress/gutenberg#13021 (comment)

Latest discussion: WordPress/gutenberg#7604

@cuemarie cuemarie added [Pri] Low [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. labels May 3, 2023
@mrfoxtalbot
Copy link

The upstream issue has been closed as "expected" so I will close this on too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Platform] Atomic [Platform] Simple [Pri] Low [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Type] Bug User Report This issue was created following a WordPress customer report
Projects
None yet
Development

No branches or pull requests

4 participants