Page 1 of 2
Phoca Gallery white pictures
Posted: 05 Oct 2008, 23:42
by sih
Dear all,
I tried since 2 days to configure Phoca Gallery.
Everything works fine but the elementary thing “upload files” not really.
scenario:
I create a new category.
If I upload the new image in there - I get a positive message.
The file is in the right folder and the thumbnails will be create.
As you could see in this screen:
white.JPG
The last image is white/or blank but it is still there!
I have all right permissions in this folder (777)
I could solve the problem if I update via FileZilla the permission again on 777
everytime I upload a new image.
Could everyone give me a short tip where could be the mistake I done.
Thanks
SIH
//Sorry some backround information:
Joomla 1.5.7
Phoca Gallery 2.0.1
Re: Phoca Gallery white pictures
Posted: 06 Oct 2008, 09:15
by caro84g
When you upload, are for all images no thumbnails created or only for the last one?
I should check 'enable automatic thumbnail creation' in the configuration of Phoca Gallery.
Have you read this topic?
viewtopic.php?f=1&t=1944
It might be similar to your problem (but I'm not sure)
Carolien
Re: Phoca Gallery white pictures
Posted: 06 Oct 2008, 15:01
by sih
Thanks Carolien for your reply.
It is not the problem with the last one it is with everyone!
I'm not sure this is the same problem like this:
viewtopic.php?f=1&t=1944
If i disable the "automatic thumbnail creation" i get this error message:
Fehler beim speichern der Datei! -> english "error by saving the file"
But the file will copy in the right folder ...
As i read in the other topic to find the solution:
//
Test the upload in front and please let me know, if image you have uploaded:
- is in the disc
- there is a thumb folder
- 3 thumbnails of this images are stored in this thumb folder...
//
In my case:
- is in the disc
- YES
- there is a thumb folder
- YES
- 3 thumbnails of this images are stored in this thumb folder...
- YES
Any Ideas?
SIH
Re: Phoca Gallery white pictures
Posted: 06 Oct 2008, 15:44
by caro84g
sih wrote:If i disable the "automatic thumbnail creation" i get this error message:
Fehler beim speichern der Datei! -> english "error by saving the file"
But the file will copy in the right folder ...
"automatic thumbnail creation" needs to be enabled
sih wrote:
As i read in the other topic to find the solution:
//
Test the upload in front and please let me know, if image you have uploaded:
- is in the disc
- there is a thumb folder
- 3 thumbnails of this images are stored in this thumb folder...
//
In my case:
- is in the disc - YES
- there is a thumb folder - YES
- 3 thumbnails of this images are stored in this thumb folder... - YES
Any Ideas?
SIH
Not really, I'm sorry

Jan maybe knows...
Re: Phoca Gallery white pictures
Posted: 07 Oct 2008, 17:35
by Jan
maybe the image is damaged some way, try to delete it and add as new (in single add view)
or try to download the thumbnails of this image from your server and see if they can be displayed in some editor ?
Re: Phoca Gallery white pictures
Posted: 08 Oct 2008, 00:34
by sih
Jan,
There are no fault with these images.
I could download the original and the thumnails and they will displayed.
Maybe i could locate this error.
In my view the point is about permissions:
After upload an file:
The original image in the mainfolder could screen and has the permission "777"
The Thumnails are created but only with the rights of "600"
I need a minimum of "644"
Where i could change this setting?
I hope this would solve my problem.
Thanks
SIH
Re: Phoca Gallery white pictures
Posted: 08 Oct 2008, 16:59
by Jan
Phoca Gallery only set the permissions of folders, but images are created by your GD (server GD library) so your php set the permissions...
Jan
Re: Phoca Gallery white pictures
Posted: 18 Oct 2008, 00:49
by sih
Jan,
i investigated in the internet to find a solution for this.
Now i know:
- This is an Error in the GD-Library - when they create an thumnail
(But there is nothing to be expected from GD-Library-Change in the near future)
The Problem is:
The GD-Library working with the "wwwrun" User and set the permission on "600"
If you have some user on your rootserver then it is meaningful to run the apache under the useraccount.
In this case apache couldn't show the images.
The is the reason why not every user of the phoca gallery have this problem.
It is not an solution to run the apache for every user under "wwwrun"
cause you gain a lot of other problems.
Is there an opportunity to get an modified version of the affected files.
A Solution could be:
after the creation of the thumbnail -> chmod($file, 0755);
I thing this coul be the easiest solution.
you could send me an PN also.
Many Thanks
SIH
Re: Phoca Gallery white pictures
Posted: 18 Oct 2008, 20:36
by Jan
If you have no acces to the files, will your site be able to set the chmod, or will it be forbidden ?
Re: Phoca Gallery white pictures
Posted: 02 Nov 2008, 11:56
by sih
Jan,
sorry for the delay.
the site will be able to set chmod - i don't think this would forbidden.
I implemented an workauround with an cronjob. but i think this is a really bad solution.
the cronjob change via chmod the permission of every file in the image folder on 755 every 2 minutes.
I would be verry grateful if there is another solution.
THX
SIH