Current time: 04-19-2014, 05:10 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better Database Errors
01-01-2007, 11:25 PM
Post: #1
Better Database Errors
The database for my site is currently down. I go to MyBB and I get this:

Quote:Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /full/path/to/my/forum/inc/db_mysql.php on line 313
MySQL error:
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /full/path/to/my/forum/inc/db_mysql.php on line 314


Query:

Gotta say, I'm not really happy to see the full server path there for all to see because of the database being down. MyBB should die(); with a vague "Could not connect to the database" or something. From the look of this error, it seems that MyBB was simply never written to deal with the database being completely unavailable.

Someone please fix that in the next version Smile
Find all posts by this user
Quote this message in a reply
01-01-2007, 11:32 PM
Post: #2
RE: Better Database Errors
Oh yeah errors look a lot better in the next version Smile

Dennis Tsang
http://dennistt.net
Find all posts by this user
Quote this message in a reply
01-02-2007, 12:08 AM
Post: #3
RE: Better Database Errors
Very nice to hear! Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication