Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better Database Errors
#1
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
Reply
#2
Oh yeah errors look a lot better in the next version Smile
Dennis Tsang
http://dennistt.net
Reply
#3
Very nice to hear! Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)