UBB.Dev
Posted By: smoknz28 Admin Login Error - 05/13/2005 5:01 AM
I've been having this error show up at the top of the page for some time now and figured it is time to fix it:

Warning: readdir(): supplied argument is not a valid Directory resource in /home/smoknz28/public_html/ubbthreads/admin/login.php on line 179


And this is what I have on line 179:

while ($file = readdir($dir)) {
Posted By: smoknz28 Re: Admin Login Error - 05/15/2005 5:33 PM
Does anyone have any idea on this one?
Posted By: JoshPet Re: Admin Login Error - 05/16/2005 5:11 AM
That's the SQL error logs. Make sure the path is correct, and that it exists and is readable/writable.
Posted By: smoknz28 Re: Admin Login Error - 05/17/2005 6:02 AM
[]JoshPet said:
That's the SQL error logs. Make sure the path is correct, and that it exists and is readable/writable. [/]

Josh, the path to where?

The directory to MySQL errors exists and is writeable. (CHMOD 733)
The directory to my Admin log exists and is writeable.

Thanks,
Gonzo
Posted By: JoshPet Re: Admin Login Error - 05/18/2005 5:21 AM
The path to the SQL error logs in threads. The path is either incorrect, or the permissions on the directory is incorrect. What the script is doing is trying to read and list all the log files in that directory, but it's saying the path you've defined isn't a valid directory. So the path could be wrong, or the permissions might be too tight. Try either 755 or 777 on the directory.
Posted By: smoknz28 Re: Admin Login Error - 05/18/2005 5:42 AM
Yea baby! []http://users.nexet.net/nicholson/bostuff/funny/bananadancing.gif[/]

755 worked.....damn, and I thought I had changed it to 755 for testing as well as 777 and it wasn't working.

You know...I've actually been dealing with this error for a few months too.

Thanks Josh!
© UBB.Developers