[wp-trac] [WordPress Trac] #47872: Try to create image sub-sizes again when uploading fails with a PHP fatal error
WordPress Trac
noreply at wordpress.org
Tue Aug 13 20:47:28 UTC 2019
#47872: Try to create image sub-sizes again when uploading fails with a PHP fatal
error
-------------------------+--------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.3
Component: Upload | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+--------------------
A common reason uploading of images fails is because the server runs out
of resources while creating image sub-sizes. That results in either a
timeout or out of memory errors.
In these cases the image file has been uploaded successfully but some or
all of the sub-sizes haven't been created. Because of the PHP fatal error,
the response to the browser/client is an "Internal Server Error" (HTTP
500) which currently results in showing an unfriendly/non-actionable "HTTP
Error" message in the UI. It also leaves the "orphaned" image sub-sizes
that were created before the server crash in the upload directory.
After #40439 and [45538] it became possible to create the missing image
sub-sizes when an image file was uploaded successfully. Ideally that
should happen right after the file was uploaded, so the user has access to
all expected sub-sizes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47872>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list