Page 1 of 1

Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 7:48 am
by youngs
I am running CMS made simple 1.9.3, php 5.3.5, mysql 5.1.55, apache 2.2.17 on fedora 14.

I've just loaded CMS made simple and during the installation process everything met the installation requirements.

I installed the Gallery module via the XML file as the module manage failed to load it. When I try to add images I get a red gif with the word "Too Big" written in it. Is there some setting that I need to change in php, apache or CMS to enable the Gallery upload tool to work?

Thanks

Re: Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 4:44 pm
by Jos
I'm curious... how big is that image you tried to upload?

Re: Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 5:44 pm
by youngs
At first I tried the full size images which were 3072x2048 2.46MB thinking that it would get automatically re-sized. I then took the same picture and re-sized it in Photoshop to 800x533 341KB and still no luck. I then tried a 15x42 image and got the same toobig gif image.

I've checked that the files and directories are owned by apache and that the permissions are 664.

Also I've re-installed flash on my PC and tried the same add image operation on a different PC.

I'm not sure if it is related but I can't seem to install modules via the module manager. I have to install them using the XML module files.

Thanks

Re: Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 9:40 pm
by Jos
youngs wrote:I then tried a 15x42 image and got the same toobig gif image.
That doesn't seem too big to me ;)

Are you able to upload images with ImageManager?

Re: Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 9:58 pm
by Dr.CSS
Almost sounds like a permissions problem...

Re: Gallery Add images error toobig.gif

Posted: Wed Mar 02, 2011 10:07 pm
by youngs
I was able to load the largest of the images with the ImageManager.

Re: Gallery Add images error toobig.gif

Posted: Thu Mar 03, 2011 10:27 am
by Jos
very strange... I'm running out of questions to ask ???
I never encountered such an issue before and I couldn't find anything in the SWFUpload forums

Re: Gallery Add images error toobig.gif

Posted: Thu Mar 03, 2011 5:17 pm
by youngs
I added the following line to Gallery/templates/swfupload/handlers.js" to see if I could get some debug information:


case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:
alert("Error Code: File too big, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
imageName = "toobig.gif";
break;

The alert box that I am getting is:
Error Code: File too big, File name: b_alp_A.png, File size: 4301, Message: File size exceeds allowed limit.

Where is the max file limit specified?

Thanks

Re: Gallery Add images error toobig.gif

Posted: Fri Mar 04, 2011 4:19 am
by youngs
I figured out what was causing the problem.

It turns out that I changed the php.ini file setting for "post_max_size = 20MB" to an unsupported format.

I changed it to "post_max_size = 20M" and everything works great!!!