Folder permission solved

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Folder permission solved

Post by Jan »

Hi, thank you for this, it seems like this will a little bit difficult as this work on different servers different,

E.g. this was added to code:
$folder_permissions = octdec((int)$folder_permissions);
and worked on some servers.

In Phoca Gallery 2.5.8 this was changed too. so try to use 2.5.8 and let me know if this work. I will take a look at it and will change if necessary.

I don't understand this:
Joomla is storing parameters as string so don't messup the datatypes
See the Joomla! core library file:

Code: Select all

/**
     * Create a folder -- and all necessary parent folders.
     *
     * @param string A path to create from the base path.
     * @param int Directory permissions to set for folders created.
     * @return boolean True if successful.
     * @since 1.5
     */
    function create($path = '', $mode = 0755) 
I see there integer, no string :-(, the same with mode ($mode=0755) so this is not int, not string but octal :-(

Please let me know your ideas, so we can solve this problem. (let me know if the 2.5.8 is worked for you).

Be aware, parameters in config.xml are not used directly, they are used for switch.

Jan
If you find Phoca extensions useful, please support the project