Previous Thread
Next Thread
Print Thread
Rate Thread
#285265 05/12/2005 10:01 PM
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)) {

Sponsored Links
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.

Daine #285268 05/16/2005 11:02 PM
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.

Sponsored Links
Daine #285270 05/17/2005 10:42 PM
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!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)