WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 8 months ago

#42829 new enhancement

Debugging image uploads with wp_generate_attachment_metadata

Reported by: Fleuv Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

Because of the if statement declared in image.php on line 181 (https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/includes/image.php#L181) it seems impossible to retrieve the error message, what is supplied by the wp_upload_bits() function.

Please return this message or implement a new function what verifies what the error messages are trying to inform the user about.

Change History (2)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


8 months ago

#2 @mikeschroder
8 months ago

  • Focuses administration removed
  • Keywords needs-patch added
  • Version 4.9.1 deleted

Hi @Fleuv! Thanks much for this ticket.

I completely agree with you that there should be a better way to troubleshoot image manipulation failures/errors.

Going to mark this as Future Release because I agree it's important. Open for suggestions/patches from anyone as to the best way to surface this information.

Note: See TracTickets for help on using tickets.