• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

PHP Fatal error: Out of memory

Status
Not open for further replies.

Imgcloud

Chevereto Member
Ok so I'm getting the following error when uploading large images:

PHP Fatal error: Out of memory (allocated 32505856) (tried to allocate 14592 bytes) in /home/public_html/includes/classes/class.imageresize.php on line 74

Immediately you want to tell me "go increase your memory limit in php.ini". Well thats what I thought the problem was to but I have changed the limit to 256Mb and I still get the error.

The server has more than enough physical memory so I don't understand what the problem is. Does anyone know of any reason why the script would not be able to access the required memory even though I have changed the limit?
 
Failing hardware is a everyday thing. Just think about it, those ram modules are being used 24/7 for many sites so they have to change the modules pretty often... Sadly some hosting companies don't care about it.
 
BurstNet are known for using cheap, crappy hardware in the start then try and replace it with the same rubbish hardware but when that fails, they do tend to use hardware that lasts 1 month. xD

My server hardware has not failed yet, hopefully isn't going to.
 
Yeh its with BurstNet. I have a ticket open with them now. I never really thought that it could be a hardware issue. To me the error doesn't make any sense, if the numbers are represented in bytes, then it says that only 31mb is being allocated? What does it mean by that?
 
BurstNET are known for failing hardware anyway, my friend bought one of their most expensive dedicated server and one of the hard drives failed along with 1 RAM module, good thing is the HDD was in RAID so he was fine, but still OVH, 1&1 are all top quality providers, burstNET just.. no... no, cheap, but.. you get cheap stuff.

PHP is very complex, it doesn't always allocate it's full amount to stuff, it just gives enough and then headroom, best way to see if it's RAM is to try and overload your server to just under it's limit then you'll know if there are some dodgy modules if it does do it correctly or sends your server offline in the process.

But yes, if Rodolfo says it's likely server side, it probably is. 😀

I just uploaded a 1920x1090 2MB+ image and some more and it worked fine, are you still getting this error?
 
Actually I just got this reply from them:

This should be working for you now. It seems that in your httpd.conf there is a setting for RlimitMEM which was set to only ~55M setting that to your limit requested in the script (256M) now has your script running correctly.Please let us know if there are any other issues you're seeing with this.

Everything seems to be working fine now 🙂
 
Probably an XEN feature, mine does not have such settings. Your script was working fine for me when you posted this, you must be super large. 😀
 
Status
Not open for further replies.
Back
Top