qustion about creation thumbnails

Phoca Gallery - image gallery extension
crazyluki
Phoca Member
Phoca Member
Posts: 32
Joined: 15 Aug 2008, 21:39

qustion about creation thumbnails

Post by crazyluki »

hi!
i have got one question.
why thumbnails creations, can`t be faster, and why it doesn`t make (for example ) 10 thumbs per one refresh ?
why it stops, when occur error - it should show logs error after all thumbs have been created.
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: qustion about creation thumbnails

Post by caro84g »

hi,

does it work and are this feature requests?

or

thumbnail creation doesn't work at your site?


Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
crazyluki
Phoca Member
Phoca Member
Posts: 32
Joined: 15 Aug 2008, 21:39

Re: qustion about creation thumbnails

Post by crazyluki »

sometimes when thumbnails are created i`ve got white screen with one text/link ( to disable creation thumbnails).

and my words about loging error - it was little solution for my error;/

of course newest phoca ( 188)
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: qustion about creation thumbnails

Post by caro84g »

Hi, when Phoca creates the thumbs you see a white screen with
"creating thumbnail (image name)" please wait... and a link to stop/disable thumbnails creating
this is normal.

Or do you mean, that you see this screen, but it's not creating thumbnails anymore?
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: qustion about creation thumbnails

Post by Jan »

While creating of thumbnails, the php system can return a fatal error (because of memory or gd library). This fatal error stops the script (there is no possibility to prevent the memory fatal error), so there is the link 'stop thumbnail creation' which is rendered before possible fatal error. thanks this link the automatically thumbnail creation can be stopped, it means the looping can be stopped.

Jan
If you find Phoca extensions useful, please support the project
crazyluki
Phoca Member
Phoca Member
Posts: 32
Joined: 15 Aug 2008, 21:39

Re: qustion about creation thumbnails

Post by crazyluki »

Or do you mean, that you see this screen, but it's not creating thumbnails anymore?
yes, there is blank screen only with option to stop creating a thumbs.


@Jan
i`ve got dedicated server (2x opteron 2x2Ghz, 8GB ram)
php_memory_limit = 1024M

GD installed correctly.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: qustion about creation thumbnails

Post by Jan »

I was writing about possible fatal error. The link is there because of possible fatal error which can occure for some users.
If you find Phoca extensions useful, please support the project
tofrine
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Aug 2008, 11:24

Re: qustion about creation thumbnails

Post by tofrine »

First of all: hi and thanks for developing such a component!
I use the 1.88 version on joomla 1.56...no sef turned on.
php 5

I've installed it and i think it answers my needs ;-))))))

BUT alas it stopped creating thumbnails after creating 11... I had the white screen with the red link to deactivate the thumbnails creation...
I reactived it ant it worked again (for 11 again)
and after that it never worked again: eadch tme i turn it on it wants to be turned off..

and the phtos i addded have no thumnails (ok) BUT they are not accesibles if you clic on then....
If i add a youtube video there is no thumbnail (i added a picture though) but it is accessible (of course will you say it is not on your server!)

It thus cannot be a pb of rights (it worked once)

gd library worked at least twice...(and is enabled)

memory limit? I doubt it since my php info says 32M

i read that as a php script is not allowed to run more thant 30 second there is a redirect???? May be that?

Any ideas out there????
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: qustion about creation thumbnails

Post by Jan »

Hi, see if you have enabled the php ini_set function, it sets the php memory limit to 50 MB and then (after thumbnail creating) back to default limit..

see if you get some error message, maybe you have disabled the php errror reporting so the error message is not displayed... Mostly this is a fatal error about memory limit...

redirect is here because if you create e.g. 300 images, it is not possible to do thumbnails in one script (in 30 seconds - mostly), so after every thumbnail creation new script will be loaded (new 30 seconds) ... which browser you use? do you have enbaled the http redirection?


Jan
If you find Phoca extensions useful, please support the project
tofrine
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Aug 2008, 11:24

Re: qustion about creation thumbnails

Post by tofrine »

First thank you for answering and your explanation.
the php ini_set seems to be not enableda nd i'm on a VDS si I cant change that easilye (must ask)

Since i posted i tried to make my photos smaller and it addedd some thumbnails and sotpped again....
An dthen i noticed i had a huge (4 meg) one which was workinfg pefexctly (first i thought that more 2m wold be the soolutuion since it got stuck when it get to a 2 meg file)

So I thought the pb was not the memory limit, and i read ther taht sometimes it could b the format and that manipulating jpgs wpwold solve the pb (i thoought that saving them again after resizing was a sign it was true)

but no...

AND today, prior to test a new extension i tried to make a little backup (part of it is copying folder joomla to another folder on the sever + databeses exort) and THERE i discovered something.....
I already noticed it when trying to use some sextensions: sometimes (i don't kno=w why cause i'm too ignorant avbout how a script discusses with a server) the script wites files on the server and it is apache the owner and not "me"/// which is bad!!!

so when trying to copy muy control panel told me that:


Error: Unable to copy /httpdocs/Joomla to /httpdocs/fab: filemng failed: cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_IMG_0764.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_IMG_0764.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_IMG_0764.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_imm004_5.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_imm004_5.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_imm004_5.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_Perle-tete-main.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_Perle-tete-main.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_Perle-tete-main.JPG' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_Photo 015.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_Photo 015.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_Photo 015.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_Photo 029.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_Photo 029.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_Photo 029.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_s_photo1.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_m_photo1.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/au-sein/thumbs/phoca_thumb_l_photo1.jpg' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/images/phocagallery/thumbs/phoca_thumb_m_youtube.gif' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/downloads/da71/71clinique.63.pdf' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/downloads/da75/75couverture.153.pdf' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/downloads/da75/75edito.150.pdf' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/downloads/da75/75zoom.154.pdf' for reading: Permission denied
cp: cannot open `/var/www/vhosts/blabla.org/httpdocs/Joomla/downloads/da75/75presse.155.pdf' for reading: Permission denied
filemng: Error occured during /bin/cp command.

and I think taht here lies the pb: but why did it occur why on thoses files? how can i avoid that????????

I really DO like phoc, it's just perfetc for our needs (i'm building a new site for our association)
Post Reply