Page 3 of 4

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 03 Aug 2009, 17:01
by ChrisGer
then (if it's 1363) it seems that you are having exactly the same problem as we all have it in this thread ;-)

standby - i'm pretty sure Jan will help us. phocagallery is a great component and i trust in Jan.

until then, most of us will run phocagallery in standard configuration and won't even try to change the folder permissions in the options-menu, at least at our public websites....

yours,
Christoph

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 03 Aug 2009, 23:07
by Jan
Hi, this is the guide for testing permissions:

https://www.phoca.cz/documents/2-phoca-g ... ersion-252

Still didn't find why you get such permission - 1363 ? As the Joomla! method is used to create folders, did you try the last versions of Joomla! (1.5.14)?

Does this problem happen in 1.5.14 too?

I have tested it on possibles servers, the value before creating folder is rigt, e.g. 0777 or 0775, still didn't find why on some servers it will be changed to such confused value ? :( :idea:

Jan

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 04 Aug 2009, 12:22
by nasart
Hi Jan, I just did a fresh install of latest version of joomla and 2.54 of phoca- same prob - if you e-mail me at damian@newcastleartistssociety.com I'll give you the login details for this install of joomla for you to play with on a server that is having this problem
cheers

new install is at www.gatesheadartists.com

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 06 Aug 2009, 00:32
by Jan
Hi, yes, I will email you.

The problem can be related to fact that the number saved in variable is not an octal type.


Try to add (test):
$folder_permissions = octdec((int)$folder_permissions);
before:
JFolder::create($folderThumbnail, $folder_permissions );

in administrator\components\com_phocagallery\libraries\phocagallery\file\filefolder.php

Jan

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 10 Aug 2009, 11:14
by seanpu1
Jan, has your code been tried out yet? If not, I'll try it today as I'm getting the same issue. (just don't want to do it on the live system unless its absolutely necessary).

(just for the info for anyone else stuck with 1363 folder, in CPanel using File Manager u can change the permissions back to 755 and then edit folder content or delete folder, but direct change using FTP accounts doesn't appear to be possible - at least not for me).

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 10 Aug 2009, 13:09
by Jan
Hi, yes I have tried it and it seems to be working, the code:

$folder_permissions = octdec((int)$folder_permissions);

seems to be OK.

I will answer all the post in the forum today and I hope I will do new release with fix (today or tommorrow)

Jan

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 10 Aug 2009, 23:40
by nasart
Works, everything is working great. Jan, any time we can be of assistance we would love to help. You are a star.

:D :D :D

Re: [Solved by now]: BUG in PhocaGallery since ver 2.52

Posted: 11 Aug 2009, 08:27
by ChrisGer
Finally, in v2.5.6beta it seems that the folder rights problem has been fixed! What a GREAT job, Jan!!!!

Thank you so much,
Christoph

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 11 Aug 2009, 12:25
by Jan
Great to hear it.

Jan

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 13 Aug 2009, 09:26
by Maultrommel
I'm really sorry - but I just upgraded to Phocagallery 2.5.6beta and I still have a permission problem...

Whenever a folder is created within/by Phocagallery, it gets the permission 043 - that means, that I'm unable to delete it or even change the permission to 755.

Config:

Joomla 1.5.14
Phocagallery 2.5.6 Beta

I hope there will be some solution soon.

Best wishes

Samuel