php runs out of memory when creating thumbnails

Phoca Gallery - image gallery extension
ben@cadaptor.co.uk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Nov 2012, 14:33

php runs out of memory when creating thumbnails

Post by ben@cadaptor.co.uk »

Hi,

this issue has just occured, PhocaGallery has been working fine for months.

however now when trying to create a new image i get the following error -

Code: Select all

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17024 bytes) in /home/cvsaco01/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214
if i add an image with thumbnail creation turned off it works fine... but cannot create the thumbnail after

any ideas what may be causing the issue?

Thanks
Ben
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9972
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: php runs out of memory when creating thumbnails

Post by Benno »

Hi,
see: 5. Allowed memory size of ... bytes exhausted ... https://www.phoca.cz/documents/50-phoca/ ... al-advices

Kind regards,
Benno
ben@cadaptor.co.uk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Nov 2012, 14:33

Re: php runs out of memory when creating thumbnails

Post by ben@cadaptor.co.uk »

unfortunately the hosts wont increase the php memory limit

there are only about 150 images in the folder? is this a large amount for PhocaGallery to handle?

I've checked the file sizes and most images are around 100Kb-150Kb there are about 5 which are 500Kb ish and nothin above 1Mb
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9972
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: php runs out of memory when creating thumbnails

Post by Benno »

Hi,
there are only about 150 images in the folder? is this a large amount for PhocaGallery to handle?
No

Try to enable "Pagination Thumbnail Generation"
See:Main https://www.phoca.cz/documents/2-phoca-g ... parameters

Kind regards,
Benno
Post Reply