Page 1 of 1

Please Help!

Posted: Thu Apr 15, 2004 4:02 pm
by chris01252
I have got the following error on my gallery

Warning: mkdir(/home/virtual/site12/fst/var/www/html/albums/.users): No such file or directory in /home/virtual/site6/fst/var/www/html/gallery/classes/gallery/UserDB.php on line 39
Error: Unable to create dir: /home/virtual/site12/fst/var/www/html/albums/.users
Fatal error: Call to a member function on a non-object in /home/virtual/site6/fst/var/www/html/gallery/classes/gallery/UserDB.php on line 104

It refers to this bit of code

if (!fs_file_exists($userDir)) {
//Line 39 if (!mkdir($userDir, 0777)) {
gallery_error(_("Unable to create dir") .": $userDir");


I have not got a clue how to resolve this I thought it might be something to do with permissions but I have tried changing them with no success.

The weird thing is that this error seemed to occur by itself, everything was working fine and then one day it stopped.

Please Help

Posted: Thu Apr 15, 2004 4:04 pm
by markl999
What's the code to generate $userDir ?
The weird thing is that this error seemed to occur by itself, everything was working fine and then one day it stopped.
Something must have changed .. maybe a PHP upgrade?