FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Forum Import Issues
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Forum Import Issues [message #14845] Sat, 22 November 2003 03:22 Go to next message
Rory_ is currently offline  Rory_   Canada
Messages: 3
Registered: November 2003
Location: Richmond, BC, Canada
Karma: 0
Junior Member
Hi there,

I created a forum dump from a installation of FUD Forum at http://www.bestofbsd.com/forum/FUDforum2/, version 2.5.3RC1. I then moved the dump over to http://www.wf4bm.net/forums and am attempting to import the dump and I'm receiving the following error.

Warning: mkdir(/home/home): Permission denied in /home/virtual/site1/fst/var/www/html/forums/adm/admimport.php on line 36
Failed to create /home/home directory, check file permissions


Just off the top of anyones head, any ideas on where I could start with this?


Thanks!

Rory
Re: Forum Import Issues [message #14902 is a reply to message #14845] Mon, 24 November 2003 22:21 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Add if (!is_dir([variable with dirname])) { before mkdir call, that should prevent this problem.

FUDforum Core Developer
Re: Forum Import Issues [message #15002 is a reply to message #14902] Thu, 27 November 2003 05:00 Go to previous messageGo to next message
Rory_ is currently offline  Rory_   Canada
Messages: 3
Registered: November 2003
Location: Richmond, BC, Canada
Karma: 0
Junior Member
This is the function that is references in the error message. I added the extra code as suggested but I am receiving the same error message. Did I add this in differently then you were suggesting perhaps?


function resolve_dest_path($path)
{
$path = str_replace('WWW_ROOT_DISK', $GLOBALS['WWW_ROOT_DISK'], str_replace('DATA_DIR', $GLOBALS['DATA_DIR'], $path));
$dir = dirname($path);
if (!@is_dir($dir)) {
while ($dir && $dir != "/" && !@is_dir($dir)) {
$dirs[] = $dir;
$dir = dirname($dir);
}
$dirs = array_reverse($dirs);
foreach ($dirs as $d) {
if (!is_dir($d)) {
if (!mkdir($d, 0755)) {
exit("Failed to create {$d} directory, check file permissions<br />\n");
}
}
}
}

return $path;
}
Re: Forum Import Issues [message #15007 is a reply to message #15002] Thu, 27 November 2003 17:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That looks correct.

FUDforum Core Developer
Re: Forum Import Issues [message #15009 is a reply to message #15007] Thu, 27 November 2003 19:40 Go to previous messageGo to next message
Rory_ is currently offline  Rory_   Canada
Messages: 3
Registered: November 2003
Location: Richmond, BC, Canada
Karma: 0
Junior Member
It still gives the same error message however. It looks like it's just trying to prepend /home to the variable. Perhaps it would be an idea to remove "/home" before each $d instance.

I was trying to see if I could find what the whole path is, and it has to be one of those variables in the function I pasted, except I can't seem to locate it. Any hints on which might contain this little piece of information?


Thanks!

Rory Erickson
Re: Forum Import Issues [message #15010 is a reply to message #15009] Thu, 27 November 2003 19:47 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
$path = str_replace('WWW_ROOT_DISK', $GLOBALS['WWW_ROOT_DISK'], str_replace('DATA_DIR', $GLOBALS['DATA_DIR'], $path));

is that maybe adding /home


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: No such file or directory (errno 2)
Next Topic: Instalation error: Unexpected character
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Jun 17 09:46:19 GMT 2024

Total time taken to generate the page: 0.07094 seconds