Page 1 of 4
[Solved]: BUG in PhocaGallery since ver 2.52
Posted: 26 Jul 2009, 19:40
by ChrisGer
Hi,
I experienced a bug since I upgraded to 2.52:
When a user creates a category via frontend, its directory gets chmod 363 on the server and so the ongoing operations (upload of pix/creating of thumbnails) fail. I first have to manually set folder permission to at least 755. It's all the same with the thumbnails-subfolder.
Folder permissions in Phoca Control Center / Options are set to 755.
When I create a category using the backend, everything is running fine.
yours,
Chris
Re: BUG in PhocaGallery since ver 2.52
Posted: 27 Jul 2009, 14:58
by Jan
Hi, the permissions for creating folder is set to 755, you can change it to your own. If the folder is created in front it should use the permissions set in the parameters (see parameters of menu link)
The front calls this method:
PhocaGalleryFileFolder::createFolder($userFolder, $errorMsg);
This method creates the folders for front and backend too, with permissions set in parameters or default with 0755

Re: BUG in PhocaGallery since ver 2.52
Posted: 27 Jul 2009, 15:02
by ChrisGer
The Problem ist that it does not
If you speak German, see
http://www.joomlaportal.de/joomla-erwei ... innig.html - you'll see that I am not the only one with this problem...
Maybe a workaround could be to renew the folder permissions within a script after creating the folder like
Code: Select all
chmod ("images/phocagallery", 0755);
chmod ("images/phocagallery/k", 0755);
chmod ("images/phocagallery/k/thumbs", 0755);
My problem at this point is that I do not have a clue in which file i could do that.
yours,
Christoph
Re: BUG in PhocaGallery since ver 2.52
Posted: 27 Jul 2009, 21:34
by Jan
Hi, try to test the 2.5.3:
https://www.phoca.cz/download/category/1 ... -component
as I have added the verification of number of permissions
(I have answered the topic on joomlaportal.de too, so please check this forum too, maybe we will find the solution :
http://www.joomlaportal.de/joomla-erwei ... post912645 )
Jan
Re: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 10:44
by ChrisGer
First of all: So many thanks for your kind help!
I tested 2.5.3 and so far everything seems fine and working at my site!
As I am running PhocaGallery on a public website I don't want to do the tests which HoShi0815 from joomlaportal. Never run a touching system
But i will set up another Joomla-Testsite on an other server for testing purposes and will keep on digging for the bug.
But again: Thank you very very much for your great work and kind help!
Yours,
Christoph
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 19:28
by webstarrr
I had the same problem:
PG 2.5.2: I made a folder, made the picture upload via FTP, then created the thumbs via PhocaGallery. Everything OK - on the first sight. The frontend shows everything perfect, but the backend...
The joomla media manager brings a lot of errors:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warning: opendir(/home/.sites/831/site611/web/steinhauser/images/phocagallery/pflanzen/mohn_sommer_09/thumbs) [function.opendir]: failed to open dir: Permission denied in /home/.sites/831/site611/web/steinhauser/libraries/joomla/filesystem/folder.php on line 484
Warning: readdir(): supplied argument is not a valid Directory resource in /home/.sites/831/site611/web/steinhauser/libraries/joomla/filesystem/folder.php on line 485
Warning: closedir(): supplied argument is not a valid Directory resource in /home/.sites/831/site611/web/steinhauser/libraries/joomla/filesystem/folder.php on line 511
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Via FTP, i found out that the permissions on the folder "thumbs" are set with "1363" (!!!!)
After reading in the forum, I upgradet to PG 2.5.3. Everything works fine with new folders & pics, but now I have 5 folders whicht have the permission "1363" - generated by the PhocaGallery!!!
The problem is now: I can't read or delete this folders, because permission is denied - even wia SmartFTP or a WebFTP application!
Can anybody help me?
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 19:52
by ChrisGer
Hej
webstarrr wrote:
Via FTP, i found out that the permissions on the folder "thumbs" are set with "1363" (!!!!)
are you sure that it's
1363 - not just 363?
webstarrr wrote:
The problem is now: I can't read or delete this folders, because permission is denied - even wia SmartFTP or a WebFTP application!
I neither know WebFTP nor SmartFTP as I am using Filezilla. With that program, you can modify file attributes using rightclick...
yours,
Christoph
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 19:58
by webstarrr
Yes, I'm sure, it's 1363...
I'll try Filezilla...
We will see...
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 20:07
by ChrisGer
otherwise, the magic word is 'CHMOD' - maybe you find it in your program...
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Posted: 28 Jul 2009, 20:14
by webstarrr
CHMOD doesn't work also - because of the "
1XXX" - because I didn't create the folder, the script of PhocaGallery did it...
http://en.wikipedia.org/wiki/Sticky_bit
EDIT: Also Filezila shows "01363"