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
[Solved]: BUG in PhocaGallery since ver 2.52
-
ChrisGer
- Phoca Member

- Posts: 10
- Joined: 26 Jul 2009, 19:35
[Solved]: BUG in PhocaGallery since ver 2.52
Last edited by ChrisGer on 11 Aug 2009, 08:48, edited 3 times in total.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: BUG in PhocaGallery since ver 2.52
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
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
If you find Phoca extensions useful, please support the project
-
ChrisGer
- Phoca Member

- Posts: 10
- Joined: 26 Jul 2009, 19:35
Re: BUG in PhocaGallery since ver 2.52
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
My problem at this point is that I do not have a clue in which file i could do that.
yours,
Christoph
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);
yours,
Christoph
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: BUG in PhocaGallery since ver 2.52
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
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
If you find Phoca extensions useful, please support the project
-
ChrisGer
- Phoca Member

- Posts: 10
- Joined: 26 Jul 2009, 19:35
Re: BUG in PhocaGallery since ver 2.52
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
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
-
webstarrr
- Phoca Newbie

- Posts: 7
- Joined: 28 Jul 2009, 19:08
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
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?
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?
-
ChrisGer
- Phoca Member

- Posts: 10
- Joined: 26 Jul 2009, 19:35
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Hej 
yours,
Christoph
are you sure that it's 1363 - not just 363?webstarrr wrote: Via FTP, i found out that the permissions on the folder "thumbs" are set with "1363" (!!!!)
I neither know WebFTP nor SmartFTP as I am using Filezilla. With that program, you can modify file attributes using rightclick...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!
yours,
Christoph
-
webstarrr
- Phoca Newbie

- Posts: 7
- Joined: 28 Jul 2009, 19:08
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
Yes, I'm sure, it's 1363...
I'll try Filezilla...
We will see...
I'll try Filezilla...
We will see...
-
ChrisGer
- Phoca Member

- Posts: 10
- Joined: 26 Jul 2009, 19:35
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
otherwise, the magic word is 'CHMOD' - maybe you find it in your program...
-
webstarrr
- Phoca Newbie

- Posts: 7
- Joined: 28 Jul 2009, 19:08
Re: [Solved by now]: BUG in PhocaGallery since ver 2.52
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"
http://en.wikipedia.org/wiki/Sticky_bit
EDIT: Also Filezila shows "01363"