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

grandcat’s picture

Category: bug » support
Status: Active » Fixed

Your 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.

hnln’s picture

Yeah, sorry about that, figured it out myself :-).

Could also be execution time :-)

HnLn

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

benstallings’s picture

Version: 6.x-3.x-dev » 6.x-3.0-rc2
Status: Closed (fixed) » Active

Before 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!

benstallings’s picture

Title: large images (2M) throw a non descrriptive javascript error and doesn't upload » update: not a problem in the module

I 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.

grandcat’s picture

Status: Active » Fixed

Good to know.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.