|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
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)) {
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Does anyone have any idea on this one?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That's the SQL error logs. Make sure the path is correct, and that it exists and is readable/writable. 
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
[] 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
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
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.
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
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! 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|