[ad_1]
Hello,
I am experiencing this bug in the Gutenberg editor (WP 6.1): sometimes when I click on simple paragraphs (with no customization, just standard p blocks in WP) I get this message “This block has encountered an error and cannot be previewed”. The frontend is ok, and when I reload the editor the error goes away. Anyway, if I click again, I get the same message (randomly, but often).
I have done a lot of testing (also with test local sites), and the problem actually seems to be Gutenberg when the theme sets the container width to full-width.
Steps to reproduce:
create a fresh WP install
install any free theme that can be set full width (astra, generate press…)
in the customizer set the Container Width to 2000px
create a post with just some paragraphs and publish it
go to the posts list > edit post
Click on the paragraphs (click multiple times, since it happens only 20% of the times)
Error: “This block has encountered an error and cannot be previewed”
If in the editor preferences I disable “Use theme styles”, everything works.`
