![]() |
Error Reporting enabled causes database error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Error Reporting enabled causes database error (/showthread.php?tid=35566) |
Error Reporting enabled causes database error - El Forum - 11-03-2010 [eluser]PG-Tips[/eluser] Hi, I'm trying to get my head around this. I'm on Mac 10.6, PHP 5.x, MySQL, Apache... CI1.7.2 I autoload the database library in autoload.php because I need it on every page. Everything works fine but I have no error reporting enabled. So I go to php.ini in private/etc/ and I set it to E_ALL (without this, CI reports nothing) Now when I load the page it says: Quote:A Database Error Occurred I installed uhoh to see if it would shed some light on this. But don't see much. Just -Unable to connect to your database server using the provided settings. -db_unable_to_connect But as I say, it works with error reporting off in php.ini Could it be throwing a warning that is enough to stop CI? Is there some way I can see a detailed log of what's going on between PHP/MySQL? Maybe I can find the error there? Or any other suggestions? Thanks, Pat Error Reporting enabled causes database error - El Forum - 11-03-2010 [eluser]PG-Tips[/eluser] Added note: Deleted - wasn't right! Pat |