Open Bug 508668 Opened 17 years ago Updated 6 years ago

Creative Collective: Uploading huge file (2.7 MB) gives fatal error

Categories

(Websites :: creative.mozilla.org, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

REOPENED

People

(Reporter: vish_moz, Unassigned)

References

()

Details

Attachments

(1 file)

Attached image fatal error page —
Creative Collective: Uploading huge file (2.7 MB) gives fatal error Steps to Reproduce: 1. Log into MCC (mcc.stage.mozilla.com) 2. click on the 'Post your design' button => https://mcc.stage.mozilla.com/designs/add 3. upload a huge file ( 2.7 MB ) Expected behavior: You should get a user friendly error message saying that file sizes over certain limit are not allowed Actual behaviour: you get an error with the following message: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16320 bytes) in /data/www/mcc.stage.mozilla.com/trunk/system/libraries/drivers/Image/GD.php on line 76
Assignee: nobody → ryan
Verified, resolved and committed. Added the following to .htaccess: php_value upload_max_filesize 8M php_value post_max_size 8M php_value max_execution_time 120 php_value max_input_time 120 == Sending .htaccess Transmitting file data . Committed revision 48975.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Reopening. This is giving me fits on Stage. Still having problems, but am making progress. Ran into this same bug on stage. Added the following to .htaccess: php_value memory_limit 128M == Sending .htaccess Transmitting file data . Committed revision 48976. Sending .htaccess Transmitting file data . Committed revision 48977.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
1. 7.4 MB: When uploading an Image, 7.4 MB, it times out and you get "Connection was reset by the network". But the image does get uploaded. Users might think their image did not get uploaded due to the connection reset message and keep uploading the same image again and again. 2. > 8MB: When uploading an image, greater than 8 MB, you get redirected back to the upload page without and message saying that the limit is 8 MB.
This is what we used on community store, it might work: php_value upload_max_filesize 20M php_value post_max_filesize 20M php_value max_input_time 300 php_value memory_limit 500M
Increasing the php values in the .htaccess to be more inline with the community store. Still receiving the same error, "The connection was reset" when uploading a large image file. == Sending public_html/.htaccess Transmitting file data . Committed revision 48991.
Do we have an IT contact? If so we should cc them. If not we should file an IT bug about this issue.
Copying Jeremy Orem from IT...Jeremy, please take a look at this and let us know what you think. From my perspective, this is the most important of the open MCC bugs. Regarding solutions, Ryan's comment #4 about reusing the community store's parameters sounds good to me. In the context of design files, even 8MB isn't all that big...if we could go up to 20 that'd be really nice.
I comment 5 are you still using a 2.7 megabyte file? About how long after you start do you see the timeout?
Testing with a 6mb file (downloadable at https://mcc.stage.mozilla.com/designs/114/full). Timeout happens in roughly 45 seconds. File still uploads, but server throws an error. (Does not happen on my test server).
If you dont want to login, you can hit the file directly at https://mcc.stage.mozilla.com/images/designs/0/114/114_or.jpg
Target Milestone: --- → 1.3
Assignee: ryansnyder.me+bugs → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: