Jump to content

 

tyzy808

Member Since 04 Aug 2006
Offline Last Active Aug 10 2006 05:12 AM
-----

Posts I've Made

In Topic: Skins installation error

09 August 2006 - 10:55 AM

have you or any one solved this problem? i am having the same problem, the skin in the repository exists and the correct permissions are set. please post a solution if somone has it.

thanks alot


Okay, i believe I found a solution to my problem and hopefully it will help others who run into this. I had to modify the file, /core/fn_common.php, starting from line 1193, or the function fn_mkdir(). There is a foreach loop in the function, i've modified the code just a bit as i commented below. The problem was the ending slash being fed to the mkdir php function, which rejected it. I'm not sure why other people aren't getting the same error, perhaps due to the flavor of OS... i'm on a server running BSDi. Possible? Anyway, this seemed to do the trick.

foreach ($dir_arr as $k => $v) {
   // $path .= $v.DS; // original code
   $path .= $v; // modified code :: removed the ending foward slash
   if (!@is_dir($path)) {
     umask(0);
     if ( @mkdir($path, $perms) != true) {
        $error = true;
        break;
     }
   }
   // added code :: Add the foward slash for the next iteration after the directory has been created
   $path .= DS; 
}