Help with limits

Phoca Gallery plugins - plugins for Phoca Gallery extension
zubo
Phoca Member
Phoca Member
Posts: 18
Joined: 08 May 2008, 00:51

Hi all newbie needs

Post by zubo »

Hi all newbie needs help.
Joomla 1.5 Legacy site.

I seem to run into problems when I start creating thumbnails. I have arranged my pics into 6 folders of 20. each folder will be linked to a category. Question - do I need Categories? Seems as if the folder acts like a category...

I just started with images in first folder and ran into problems on thumbnail creation - so I reduced all my image sizes by 50%. I notice the 3M upload limit - is that 3Mb TOTAL for all files you are creating thumbnails for??

Anyway, I cut back my first folder to 6 files - 152, 495, 543, 1677, 154, 738kb. As soon as the third thumbnail starts it collapses with

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16908 bytes) in C:\Abyss Web Server\htdocs\16\administrator\components\com_phocagallery\helpers\phocagallery.php on line 671


If after this I try to preview the site - as soon as I click on the folder (I can see the thumbnail) I get



* You are not authorised to view this resource.

To access the Private Area of this site please Login

Why? all the resources are public and published......

Anyone help me fix this please.

Thanks

George
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, it depend on you

Post by Jan »

Hi, it depend on your GD library and your server - the thumnail is created by your server and your GD library (the memory limit)

Private Area - ??? maybe some problems with login in your joomla ???
If you find Phoca extensions useful, please support the project
dickey
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 May 2008, 22:50
Location: Canada

Greetings from Toron

Post by dickey »

Greetings from Toronto Jan.

I have latest Joomla (1.5.3) with latest Phoca Gallery (1.8.2beta). I was able to create thumbnails for abotu 40 of my pictures adn then started getting this error:

Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10368 bytes) in /administrator/components/com_phocagallery/helpers/phocagallery.php on line 671

My web-host said I should use imagemagic as they don't knwo what they can do with GDlib to fix the problem. So basically they were not very helpful. How do I free up the memory thats locked. I have waited a full day hoping that the system probably frees up the memory itself, but no luck. my image sizes are nto big (1200x800) adn I am only trying to add 2/3 images.

Would appreciate your guidance on this. Merci!

Best wishes,
Ash
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, this problem sho

Post by Jan »

Hi, this problem shouldn't be about GD, but about the RAM (memory), but it is not so easy (because mostly the problem is the resolution of an image)

There is no way how to free memory, because at the moment only one image per script is created (after one image creating it comes the http redirect, so the memory will be free after every image)

On my demo servers (XP - localhost, Suse, Freebsd) I can add e.g. 3MB image with 3072 x 2304 without problems, so I cannot say where can be the problem

You can use the pagination thumbnail creation, so only images which will be displayed on the site (e.g. 10) will be converted into thumnails (you add first 10, then you go to the next site and you add next 10 ... it can be 20, or 30, or...) By enabling this paramter you will not save the memory which is taken by thumbnail creation (because as I said, after every thumbnail creating the script will end and the memory will be free, so only one image is loaded into a memory) but you will save the memory which is taken by a SQL query (all image names are loaded because of checking, so by pagination thumbnail creation only e.g. 10 image names are loaded)... If you have added e.g. 100 images into a gallery, it doesn't take so much memory (only image names are loaded), but if you have added e.g. 500 images, you can save some memory by enabling pagination thumbnail creation...

Jan

jan
If you find Phoca extensions useful, please support the project
zubo
Phoca Member
Phoca Member
Posts: 18
Joined: 08 May 2008, 00:51

AshWhy d

Post by zubo »

Ash

Why do your images have to be so big? I felt my sizes were too large - same as yours - and resized everything 640x480 and they work really well.

george
dickey
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 May 2008, 22:50
Location: Canada

Hello All -

Post by dickey »

Hello All -

I found/solved my problem. Out of all my images (which are all 1200x800 'ish), there was one that was huge. This huge one was causing the problem.

Jan, Zubo, thanks for your responses.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

...

Post by Jan »

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