Page 1 of 1

Error Reporting

Posted: Fri Oct 31, 2008 6:16 am
by AlexGrim
Hey guys, i've got something that has been bugging me to death for almost 1 year now. Error reporting!
I own quite a few websites, and i work on them locally and test them until they are sound enough to put on my live servers for use.
The problem is, that after i will upload a large project, i get brazillian freakin error notices (undefined index, etc) that are embarrassing.

I ALWAYS use error_reporting(E_ALL) and have even tried it with E_STRICT and yet i NEVER GET ANY FREAKING ERRORS!
I am running Apache, on Fedora, with PHP 5.* and MySql 5.*. I don't know why i cannot see my errors locally, but i can always see them on Godaddy's servers, when i'm using the exact same error setting, but if someone could point me in the right direction on this, i'd be grateful.

This makes the development process take me longer, because i cannot see errors, and so, if something doesn't work, i have to step through myself to find what the problem was, instead of php telling where it is. I have looked around to see if there is something that may need changing to get errors, but i came up with nothing.

Thanx all.

Re: Error Reporting

Posted: Mon Nov 03, 2008 11:39 am
by ahowell
make sure you have display_errors set in your php.ini

Re: Error Reporting

Posted: Mon Nov 03, 2008 12:09 pm
by koen.h
And turn them off on the production server.

Re: Error Reporting

Posted: Mon Nov 03, 2008 8:49 pm
by AlexGrim
Ha, imagine that! All this time, i've been screwing with the error_reporting setting, and i've never once paid any attention to the display_errors setting that is just underneath it. I though that was for something else,something besides little script errors; like server errors, or something.

Thanx a million guys. I have actually tried to create an error yet, to see if that get's me what i was looking for, but i'm sure that it will.

Now i can also turn them off on the production server. Thanx again.