#50645 closed defect (bug) (invalid)
Raw HTML displayed in snackbar message.
| Reported by: | spacedmonkey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 5.5 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: | rest-api |
Description
When editing an image with new cropping tools found in 5.5-beta1, a large image failed to edit. I was shown a snackbar message with raw html as text.
See attached image.
Attachments (1)
Change History (7)
#2
@
6 years ago
- Keywords close added
I'm not sure what can be adjusted in Core here, this should be handled upstream in the Gutenberg UI code for image editing.
#4
@
6 years ago
Yeah, this is the standard "server has crashed" error message coming from WP_Fatal_Error_Handler: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-fatal-error-handler.php#L182.
Wondering if it would make sense to put the help link URL and text in the WP_Error data instead of concatenating it with the error message. Then it can be rendered properly before displaying both through the API and direct output.
#5
@
4 years ago
- Keywords needs-patch removed
- Resolution → invalid
- Status new → closed
This was fixed in this Gutenberg PR https://github.com/WordPress/gutenberg/pull/40812
So we can close this one.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Weird error mesage.