Page 1 of 1

Hi all newbie needs

Posted: 08 May 2008, 01:22
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

Hi, it depend on you

Posted: 08 May 2008, 18:22
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 ???

Greetings from Toron

Posted: 15 May 2008, 22:54
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

Hi, this problem sho

Posted: 15 May 2008, 23:41
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

AshWhy d

Posted: 16 May 2008, 14:36
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

Hello All -

Posted: 21 May 2008, 20:20
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.

...

Posted: 21 May 2008, 20:36
by Jan