Lost error reporting after server upgrade

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Lost error reporting after server upgrade

Post by rhecker »

On my development server (not the live server) I want to see mySQL errors on the page and this is what I had before I upgraded to ZEND server 6.1.0. (which also upgraded MySQL to 5.5) But now they are not showing.

My DB connection script includes the following:
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

I don't want to go to the log to see the errors. I want to see them on the page as I used to. Suggestions?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Lost error reporting after server upgrade

Post by requinix »

Check the display_errors setting in your php.ini.
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Re: Lost error reporting after server upgrade

Post by rhecker »

Good now. Thanks.
Post Reply