Page 1 of 1

Re: Folder permission solved

Posted: 12 Sep 2009, 22:02
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