Make WordPress Core

Opened 4 years ago

Closed 15 months ago

Last modified 3 months ago

#50645 closed defect (bug) (invalid)

Raw HTML displayed in snackbar message.

Reported by: spacedmonkey's profile spacedmonkey Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5
Component: Media Keywords: close
Focuses: rest-api Cc:


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)

Screenshot 2020-07-13 at 10.57.09.png (919.2 KB) - added by spacedmonkey 4 years ago.
Weird error mesage.

Download all attachments as: .zip

Change History (7)

4 years ago

Weird error mesage.

#1 @spacedmonkey
4 years ago

CC @azaozz

#2 @TimothyBlynJacobs
4 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.

#3 @spacedmonkey
4 years ago

Ticket on gutenberg repo.

#4 @azaozz
4 years ago

Yeah, this is the standard "server has crashed" error message coming from WP_Fatal_Error_Handler:

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 @Mista-Flo
15 months ago

  • Keywords needs-patch removed
  • Resolution set to invalid
  • Status changed from new to closed

This was fixed in this Gutenberg PR

So we can close this one.

#6 @swissspidy
3 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.