Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Tiled Gallery block bug: Shows error when nested within another block #44774

Open brookewp opened 4 years ago

brookewp commented 4 years ago

Steps to reproduce

  1. Starting at URL: https://wordpress.com/block-editor/page/
  2. Add a Group block, Column block, or Layout Grid block to the page
  3. Then add a Tiled Gallery within the block
  4. Save the draft or publish the page and refresh.
  5. See error "This block contains unexpected or invalid content."
  6. Try to attempt block recovery and refresh page, and you'll be back to step 5.

What I expected

To add a Tiled Gallery within other blocks without error, the same as we can with other Gallery blocks.

What happened instead

Once the page was saved, the error 'This block contains unexpected or invalid content.' showed and could not be resolved by a block recovery. The issue persists on page refresh or exiting and returning to the page.

Browser / OS version

Chrome Version 84.0.4147.105

Screenshot / Video

Screen Shot 2020-08-07 at 12 37 44 PM

Context / Source

hc-21391325

user-report

ivan-ottinger commented 4 years ago

Another report: #3258360-zen

kaitohm commented 4 years ago

Another report: 3277688-zd-woothemes

Adding, the issue only seems to appear when the block settings are set to "Tiled mosaic". Other styles seem fine.

Confirmed on my test site - simple site.

sophiegyo commented 4 years ago

Another report in the most recent reply here: #3332154-zen

I also tested another JP block since Tiled Gallery is JP. The other JP image block I tested (Image Compare) was fine.

worldomonation commented 3 years ago

I ran into this while conducting #manual-testing and in my case at least, I was able to trigger the same Attempt Block Recovery error by converting to a Reusable Block. https://user-images.githubusercontent.com/6549265/106681920-5023c580-6576-11eb-9e15-a16aa0fb1b4a.mov

sarahcada commented 2 years ago

Another report at 4770111-zd-woothemes Tile Gallery Block is inside a Columns Block. The Columns block isn't necessary in this case, so the workaround I used is to just remove the Tiled Gallery Block from the nesting.

isocialtish commented 7 months ago

Got another user report in #4770111-zen

github-actions[bot] commented 7 months ago

Support References

This comment is automatically generated. Please do not edit it.

jerrysarcastic commented 4 months ago

Also reported in 8419005-zen