Quote:
Originally Posted by Gatherix
The error is telling you that it can't connect to the database; ensure that database.php has been properly edited and uploaded, the format is correct in regards to the OS of your host, and that the login credentials completely match what's set in the database. Since you're using a domain, ensure your DNS records are setup correctly and properly account for the subdomain.
If none of that works, you may be able to bypass the error temporarily by setting $db['default']['db_debug'] to FALSE, though that's not a good long-term solution.
|
I changed it to False as a temp fix, but then I got the following error messages when I tried to login:
A PHP Error was encountered
Severity: 8192
Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
Filename: mysql/mysql_driver.php
Line Number: 319
----------------------------------------------------------------------
A PHP Error was encountered
Severity: 8192
Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
Filename: mysql/mysql_driver.php
Line Number: 319
--------------------------------------------------------------------
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/c1056622/public_html/system/core/Exceptions.php:185)
Filename: libraries/Session.php
Line Number: 675
-------------------------------------------------------------------------
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/c1056622/public_html/system/core/Exceptions.php:185)
Filename: helpers/url_helper.php
Line Number: 540