Please Help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chris01252
Forum Newbie
Posts: 1
Joined: Thu Apr 15, 2004 4:02 pm

Please Help!

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post 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?
Post Reply