-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
FSE: Query block encounters an error with sample content in Site Editor #29051
Comments
Hey @chthonic-ds - thanks for reporting this! I couldn't reproduce this. Is this still happening? |
Thanks for taking a look, @ntsekouras ! Yes, I'm still seeing this issue, though there's now a slightly different path to see the error after updating to the latest WP core, Gutenberg and TT1 Blocks theme.
The Hello World! post is initially saved in a Classic Block. When I convert it to a Paragraph block, the issue is gone. Console error before converting the Classic Block (neglected to add in the initial report, apologies):
|
Struck me as odd that a Classic block would be used in Hello World!, and I think I know now why I'm seeing this behaviour. I was testing with an old version of Laragon and this was initially installing an earlier version of WordPress which was then updated to the latest. The initial WordPress installation is where the Classic block was coming from. Testing again with 5.6.2 installed from the outset, a regular Paragraph block is used and the error doesn't occur. I guess this means the actual issue here is that the Classic block generates an error in the Query block. I can't see an open issue for this but will hold off creating one until someone else confirms. |
This PR might be the fix: #27059 |
Hi, I'm not able to reproduce this; believe it was fixed in #48938 ; please reopen if you're still experiencing this. |
Description
A fresh WordPress install includes a Hello World sample post, and this post is part of the content returned inside a Query block in the Site Editor. The block containing this content displays the error, "This block has encountered an error and cannot be previewed."
Step-by-step reproduction instructions
Expected behaviour
Content returned by the Query block should be available.
Actual behaviour
The block displays the "this block has encountered an error and cannot be previewed" message.
Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: