[wp-trac] [WordPress Trac] #23127: Media Upload hangs on Crunching on too big image sizes.
WordPress Trac
noreply at wordpress.org
Sun Sep 3 04:43:47 UTC 2017
#23127: Media Upload hangs on Crunching on too big image sizes.
--------------------------+------------------------------
Reporter: clubdesign | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 2.7
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by gmariani405):
Uploaded my first real patch, so please let me know if i did not follow
protocol or standards, etc. I have code to safely return an error message
in the event of a fatal error in this scenario. Also at the suggestion
clubdesign, I have it estimating if it will fail and returning an
wp_error. The only issue in this case is that I can't (haven't really dug
into) get it to return a memory exhausted type error. Instead it just
shows "An error occurred in the upload. Please try again later." which is
atleast something. If the memory estimating is too unreliable, the fatal
handler shows the appropriate memory error. I've also attached a sample
image that will 9 times out of 10 cause a memory exhaust error for a limit
of 256M. Again, any feedback is appreciated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23127#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list