Page 1 of 1

Fatal error: Allowed memory size of 36700160 bytes exhausted

Posted: 27 Jun 2009, 18:55
by M24o
Please help me! I have a very big problem: Everytime a user uploads an imgage, this error occurs:

Code: Select all

Fatal error: Allowed memory size of 36700160 bytes exhausted (tried to allocate 13056 bytes) in /home/.sites/561/site86/web/administrator/components/com_phocagallery/helpers/phocagallery.php on line 894
This only happens by an image with a high resolution (in the case of the image 3264* 2176) and a big size (in the case of the image 1,7 Mb). But, i also uploaded a small image with a low resolution, and it worked. User control panel is on, thumbnail creation status too. Please help me! :cry: :x :?:

Re: Fatal error: Allowed memory size of 36700160 bytes exhausted

Posted: 27 Jun 2009, 23:55
by reko
hi,
this means that your server can't handle big files, or the memory-usage-limit is set too low for these huge images.

what you can do is resizing your images before uploading, this also saves bandwith and time for the upload and diskspace on your server. it doesn't make sense to use the big files anyway - unless you're planning to offer high reolution files for printing on big layouts.

regards,
rk

Re: Fatal error: Allowed memory size of 36700160 bytes exhausted

Posted: 28 Jun 2009, 15:05
by M24o
Thanks for your reply!
I'm sorry, but my server has a free disk space of 9GB, and I can download the uploaded files via ftp from my server. So there's no problem with my server, but a problem with phoca gallery. Perhaps, someone knows the solution. Thanks!

Re: Fatal error: Allowed memory size of 36700160 bytes exhausted

Posted: 28 Jun 2009, 18:08
by reko
this error message has nothing to do with the available diskspace, but with the settings (max. allowed memory for script execution, etc.) on your server.

Re: Fatal error: Allowed memory size of 36700160 bytes exhausted

Posted: 28 Jun 2009, 21:13
by M24o
mmh, it works!
i scaled the image down a bit, but the image size is as big as before, but it worked... strange...