Fatal error: Allowed memory size of 36700160 bytes exhausted

Phoca Gallery - image gallery extension
M24o
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2009, 18:45

Fatal error: Allowed memory size of 36700160 bytes exhausted

Post 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 :?:
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

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

Post 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
M24o
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2009, 18:45

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

Post 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!
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

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

Post 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.
M24o
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2009, 18:45

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

Post 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...
Post Reply