7956 Posts in 1394 Topics by 945 members
|Go to End|
8 October 2009 at 2:24pm
I have had the DataObjectManager and ImageGallery installed on a website with absolutely no issues, runs amazingly. However it seems to have reached an invisible ceiling and wont take anymore images in a folder. The folder in question has 103 images, and image number 104 tips it over the edge and gives me this error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2560 bytes) in /home/horrigan/public_html/sapphire/filesystem/GD.php on line 24
I get the above error message on both the gallery page for that folder, and in the backend on the photos tab for that folder. I have increased the memory limit of php to 128M and this is confirmed in the phpinfo();.
Any ideas what could be at play here?
8 October 2009 at 3:40pm
I've only seen this happen when I upload a really large image. Resampling an image requires that the image data be stored in memory while it creates a new file, so the larger the input, the more memory it requires. The memory allocation is not additive, however. AFAIK, it is freed after each process, so the number of images in the gallery shouldn't matter.
So, are you uploading a large image? When does the error occur? After the upload or on the gallery page?
8 October 2009 at 4:15pm
Ah sorry man, I checked everything except the obvious. I was busy with some other stuff yesterday and just took the easy route and posted here. Thanks for the quick response, it was just a large image it seems.
8 October 2009 at 5:39pm Last edited: 8 October 2009 5:56pm
Its wierd. I can upload a 1.5mb image, but my sister can't upload an image she has, and on trying the image myself, i can't do it either. Must be something with her image...
8 October 2009 at 8:28pm Last edited: 8 October 2009 8:28pm
What kind of image is it and how/when does the upload fail? Several things could cause problems:
- unusual characters in the filename
- unrecognized file format (eg. bmp?)
- CMYK instead of RGB colorspace
- Image with different color-depth (more than the usual 8bit per channel)
|Go to Top|