vierbergenlars/RemoteCP — Issue #12: mysqli triggers error when the database is not available
Author: vierbergenlars
Created: 2012-02-08 19:59:36+00:00
State: open
Labels: database.remote, php, site-core

**Warning**: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on 'db.remotecp.co.cc' (110)
**Warning**: mysqli::escape_string() [mysqli.escape-string]: Couldn't fetch mysqli
**Warning**: mysqli::query() [mysqli.query]: Couldn't fetch mysqli
**Fatal error**: Call to a member function fetch_assoc() on a non-object in **/home/a9453481/public_html/inc/groups/groups.php** on line **26**

RemoteCP should just report the database went down and exit instead of displaying these errors.