Phoca Gallery white pictures

Phoca Gallery - image gallery extension
sih
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Oct 2008, 23:28

Phoca Gallery white pictures

Post by sih »

Dear all,
I tried since 2 days to configure Phoca Gallery.
Everything works fine but the elementary thing “upload files” not really. :o

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. :idea:

Thanks
SIH

//Sorry some backround information:
Joomla 1.5.7
Phoca Gallery 2.0.1
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Phoca Gallery white pictures

Post 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
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)
sih
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Oct 2008, 23:28

Re: Phoca Gallery white pictures

Post 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
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Phoca Gallery white pictures

Post 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...
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: 48973
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery white pictures

Post 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 ?
If you find Phoca extensions useful, please support the project
sih
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Oct 2008, 23:28

Re: Phoca Gallery white pictures

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48973
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery white pictures

Post 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
If you find Phoca extensions useful, please support the project
sih
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Oct 2008, 23:28

Re: Phoca Gallery white pictures

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48973
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery white pictures

Post by Jan »

If you have no acces to the files, will your site be able to set the chmod, or will it be forbidden ?
If you find Phoca extensions useful, please support the project
sih
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Oct 2008, 23:28

Re: Phoca Gallery white pictures

Post 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
Post Reply