Non-error, unexpected response for _wp-find-template
not handled
#45170
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Type] Enhancement
A suggestion for improvement.
Description
When a non-error, unexpected response (not HTTP
404
, but200
) is sent for a_wp-find-template
request, e.g. a HTML page,no error or warning message is emitted, instead the Gutenberg site editor simply stays blank, without any indication for why it fails.
Related issue: #37236
The added error handling doesn't validate the response schema/data. A HTTP
400
response with HTML will not cause an error, instead the editor simply stays blank.That a HTML response is sent back for
_wp-find-template
can be caused by loaders in themes that add support for additional languages, e.g. Blade-PHP for hybrid FSE themes.Step-by-step reproduction instructions
_wp-find-template
requests from the Gutenberg site editor._wp-find-template
request, receives the unexpected, non-error response and stays blank.Screenshots, screen recording, code snippet
No response
Environment info
6.0.3
, Gutenberg version14.3.1
.Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: