Upload Error
12 posts by 4 authors in: Forums > CMS Builder
Last Post: March 25, 2009 (RSS)
By pcolvin - March 22, 2009
Here is a copy of the error:
Fatal error: Out of memory (allocated 47185920) (tried to allocate 15488 bytes) in /home/fdmjweb/public_html/cmsAdmin/lib/common.php on line 398.
Any help or guidance to fix this will be appreciated. I'm not sure if this is a CMS problem or server problem. As I mentioned it just started in the middle of some web site maintenance.
Re: [pcolvin] Upload Error
By pcolvin - March 22, 2009
Something good to know if anyone else has the problem.
Re: [pcolvin] Upload Error
By Perchpole - March 22, 2009
So, can we either nail this problem or at least define where the lines are drawn otherwise we're going to have some explaining to do!
:0)
Perchpole
Re: [pcolvin] Upload Error
By Kenny - March 22, 2009
Because graphic manipulation can take large amounts of memory, the GD module will limit the size of the images. GD eats memory based on the dimensions of the image
I can't help but ask why a 3872x2592 image would need to be uploaded - that's a pretty big picture that wouldn't display in full on a 30-inch Apple Cinema HD Display.
I'm not sure of a work around -
Kenny
Re: [sagentic] Upload Error
By Perchpole - March 22, 2009 - edited: March 22, 2009
I can't help but ask why a 3872x2592 image would need to be uploaded
It's easy for us to expect people to crop and manipulate images but the fact is many people just don't know how. I chiefly use CMSB to create web platforms for non-technical users. I want them to be empowered to run their own sites without being reliant on a "web guy" to run things for them.
With this in mind, you have to understand that many of these end users do not have access to programmes like Photoshop. More often than not they simply want to take an image off their digital camera and upload it on to their site.
The upload tools in CMSB should allow my non-techy users to do just that - but the size issue throws a substantial spanner in the works. I can no-longer tell my customers that "CMSB can handle any image you throw at it" - because there are certain caveats attached to that claim.
:0\
Perch
Re: [Perchpole] Upload Error
By Kenny - March 22, 2009
Image resizing is one of the most CPU intensive tasks and therefore one of the most likely things to exceed CPU limits. I personally wouldn't want that to drag any of my servers down. I have a few photographers that chew up some memory during peak hours and the servers we have them on have 24GB RAM with Quad Core Processors. I can only imagine what it would do to a shared hosting environment.
We always recommend to our clients to download Irfanview http://www.irfanview.com to resize images. It's easy to use, FREE, and will batch resize and rename images without any problems.
I tell them to make sure their images are no greater than 800 pixels wide so they fit most monitors when viewed.
There are some alternatives to the GD Library but I'm not sure CMSB would work with them.
So in short, this is not a limitation of CMSB, but rather a limitation of your server.
Hey, next year at this time, we might be grumbling about needing more support for our hologram images. [;)]
Kenny
Re: [Perchpole] Upload Error
By Dave - March 23, 2009
Things you can do include:
- Ask your host to increase your memory limit
- Try upload less images at a time (perhaps just one)
- Use the "Maximum upload size" setting in the field editor to reject extra large images.
- Disable thumbnail creation to reduce memory usage (but then you'd still have an extra large image.
The simplest may be to provide the client with some simple software or instructions to resize locally before uploading. We're always limited by the server resources the host provide, unfortunately.
That said, moving forward we're aware of this issue and will continue to research other solutions.
Hope that helps!
interactivetools.com
Re: [Dave] Upload Error
By Perchpole - March 23, 2009
Thanks for your response (and your comments too, Sagnetic!). I now feel a bit more informed about this issue. I fully appreciate this isn't a problem with CMSB. Accordingly, I think I'll try to coax a few of my older clients to try a few rudimentary image adjustments before they upload!
Having said that, I think it must be worth exploring ways of capping large (dimension) images in much the same way that the system currently prevents heavy (MB) images from being uploaded. If this could be done, the end user would see a warning message from CMSB rather than some server-generated error message.
Do-able?
:0)
Perch
Re: [Perchpole] Upload Error
By Dave - March 24, 2009
I'd have to research, we may need to decompress the full image to get the dimensions, which is where the memory issue comes in.
What is the dimensions and filesize of the problem images? Is it possible to restrict just on filesize? Wouldn't very large images have a very large filesize?
interactivetools.com
Re: [Dave] Upload Error
By Perchpole - March 24, 2009
Wouldn't very large images have a very large filesize?
Hi, Dave ,
You would certainly think large images would have large filesizes but apparently that's not always the case - especially where digital cameras are concerned! My (somewhat elderly)client has been photographing his product range for years - in a certain way, with a particular camera, etc... So, if the resulting pictures cannot be uploaded, then the fault is mine - not his!
It's a pretty invideous position to be in!
Wibble!
Perch