[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
Wed Sep 4 01:11:08 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:  high                                    |   Milestone:  5.3
Component:  Upload                                  |     Version:
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing needs-dev-note  |     Focuses:
----------------------------------------------------+---------------------

Comment (by azaozz):

 In [changeset:"45934" 45934]:
 {{{
 #!CommitTicketReference repository="" revision="45934"
 Uploads: After an image is uploaded and PHP times out or runs out of
 memory during post-processing (the server response is HTTP 500 error), try
 to resize it three more times. Then, if all attempts fail, do a cleanup of
 any sub-sizes that may have been created and show an error message asking
 the user to scale the image and upload it again.

 See #47872.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47872#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list