[Solved]: BUG in PhocaGallery since ver 2.52

Phoca Gallery - image gallery extension
ChrisGer
Phoca Member
Phoca Member
Posts: 10
Joined: 26 Jul 2009, 19:35

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
nasart
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Aug 2009, 12:02

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
seanpu1
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 03 Aug 2009, 14:46

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
nasart
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Aug 2009, 12:02

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

Post 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
ChrisGer
Phoca Member
Phoca Member
Posts: 10
Joined: 26 Jul 2009, 19:35

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

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

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

Post by Jan »

Great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Maultrommel
Phoca Member
Phoca Member
Posts: 17
Joined: 06 Oct 2008, 08:27

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

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