Closed (fixed)
Project:
Image FUpload
Version:
6.x-3.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2008 at 19:19 UTC
Updated:
6 Jul 2009 at 20:20 UTC
When I try to upload a large image (I don't have the problem with small images), e.g. 2M I get a javascript error once the image is "uploaded" "An error occurred /fupload/js/image
". The display says 1 image uploaded but when going to next step it says queue is empty.
Tnx,
HnLn
Comments
Comment #1
grandcat commentedYour memory limit (PHP) is too low, try to increase it.
Reason: If the imagefile is too big, PHP needs more memory to do its works on the image. Otherwise, an exception error will be returned which can't be interpreted by JavaScript yet --> error message. So FUpload does not notice that.
It's not a bug of Image FUpload, otherwise it's also a bug of image module.
Comment #2
hnln commentedYeah, sorry about that, figured it out myself :-).
Could also be execution time :-)
HnLn
Comment #4
benstallings commentedBefore I installed this module, I had my PHP memory set at 96M and never ran out of memory, but now I've got it at 500M and can't upload a measly 1.6MB image -- I get a Javascript error saying, "Out of memory (allocated 47710208) (tried to allocate 9792 bytes) in /includes/image.gd.inc on line 190". Now, I'm no whiz, but if it tried to allocate 9792 bytes, and it successfully allocated 47 MB, and there were 500 MB available to allocate, then I'm thinking something else is going on.
What else can I try? Thanks!
Comment #5
benstallings commentedI stand corrected, the memory limit I was running up against was in Apache, not in PHP. My hosting company boosted Apache's memory limit and the error went away.
Comment #6
grandcat commentedGood to know.