Go Back   Pligg CMS Forum > Other > Suggestions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2007, 01:39 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 61
Thanks: 4
Thanked 3 Times in 2 Posts
Friendly Database Unavailable Error Message

Is it possible to generate a friendlier error message indicating the database is unavailable?

For example, here's an error message from my Pligg site saying the DB is not available:

Warning: Error establishing mySQL database connection. Correct user/password? Correct hostname? Database server running? in /home/myhost/public_html/mysite/libs/db.php on line 87

Warning: mySQL database connection is not active in /home/myhost/public_html/mysite/libs/db.php on line 119



Here's an error message from a similar site running Wordpress


Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Reply With Quote
  #2 (permalink)  
Old 08-25-2007, 08:30 AM
New Pligger
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I agree that the warning and error reporting has to be more elegant or maybe we don't know how to turn that feature on. In any case, the error for me is on line 330 which says Too many connections in /libs/dbtree.php on line 330
Reply With Quote
  #3 (permalink)  
Old 09-09-2007, 09:19 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 61
Thanks: 4
Thanked 3 Times in 2 Posts
+1 for adding this to a future build
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
database during install phalcon Installation and Upgrade Help 2 07-24-2007 10:17 AM
Database argh2xxx Bug Report 4 06-26-2007 10:04 PM
error :"connected..but the database name is incorrect" michael12happy Installation and Upgrade Help 3 06-10-2007 03:43 AM
Database name, username, password = what?!?! starguy Installation and Upgrade Help 4 06-10-2007 03:29 AM
Documenting, Diagramming, and Critiquing the Pligg Database MicroBerto General Help 4 03-31-2007 04:46 PM


Search Engine Friendly URLs by vBSEO 3.2.0