Error 1

Phoca Gallery - image gallery extension
MeTurk
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Jun 2010, 12:17

Error 1

Post by MeTurk »

Joomla: 1.5.17
Phoca gallery: 2.7.1

On allot of photos I upload I get this error but not on all. I'm trying to upload a few pictures I took myself and reduced using http://www.multipleimageresizer.net/. The images are starting at 3648 x 2736 300dpi and the image resizer are reducing them down to 50% of their size 1824 x 1368 96dpi, jpg. The first batch I uploaded worked, although I had to upload them a few times, but the latest batch just will not upload without generating errors when trying to create thumbnails. If I upload some small image I downloaded off the internet it doesn't seem to cause problems.

I've tried resizing the images down to 35% of they're original size and have had some success but still get the following errors,
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 14592 bytes) in /public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Is there a particular way I should be saving them? Or is there any setting I should be avoiding? Is there a setting I can change on the server to allocate space quicker?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 1

Post by Jan »

Hi, try to search this forum for problems with memory.

In fact there are only two options (as creating of thumbnails is made by GD library on server):

- increase memory limit (cpu, etc. of server)
- or reduce image size (resolution) :-(

Jan
If you find Phoca extensions useful, please support the project
MeTurk
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Jun 2010, 12:17

Re: Error 1

Post by MeTurk »

Thanks for getting back to me, I contacted my Hosting provider and asked them to up the limit to 32mb but the error is still exactly the same,

Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10944 bytes) in /home/dunmorei/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

The "Allowed memory size of 52428800 bytes" hasn't changed even though I've checked in Cpanel and they have put up the limit from 16mb to 32mb, do I just need to ask them to up the limit again or is the fact that the error stays the same even though I've put up the limit mean there's something else happening?

I'd like to keep the images as big as possible but if I have to reduce the size further I guess I'll just have to do that.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 1

Post by Jan »

Hi, all this depends on your server and your GD library, sometimes the GD library needs more than 32 MB (depends on image size and resolution). So Phoca Gallery tries to increase the limit to 50 MB for the creating but this can be disabled on the server - check ini set functions.

Jan
If you find Phoca extensions useful, please support the project
MeTurk
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Jun 2010, 12:17

Re: Error 1

Post by MeTurk »

Looks like I'll just have to go with smaller pictures the hosting company want me to pay €180 to up the limit to 62mb.

EDIT: Works fine once the images where reduced further but the images are kind of small now. Anyway, problem solved.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 1

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply