tags:

views:

213

answers:

3

I am running the latest version of MAMP on Snow Leopard.

My php.ini file has been configured to display errors. display_errors = on. The phpinfo(); page displays the status of error reporting, it is on. I have restarted my web server several times.

I've searched through Google, and I cannot find any similar problem. Everyone just says to do exactly what I have done, but it is not working. The pages will just remain blank, (with no reporting), if I intentionally place errors.

Any thoughts as to what the problem may be?

+1  A: 

In addition to the display_errors directive, which has to be set to On, you might have to configure error_reporting.

For instance, you can use this in your php.ini file :

error_reporting = E_ALL


Another should, useful to test, might be to place this kind of portion of PHP code at the beginning of your script :

error_reporting(E_ALL);
ini_set('display_errors', 'On');

This is useful when you don't have access to php.ini and/or just want to test quickly, without having to restart the webserver.


As a sidenote, when it comes to displaying errors, the Xdebug extension is really great : when it's installed/enabled/configured, instead of just having an error message, you'll get the full stack-trace, which is much more useful ;-)

Pascal MARTIN
Thanks for you post, I appreciate it! Unfortunately, it's still not working. It looks like something is overriding everything? I am clueless, any ideas?
twinbornJoint
A: 

There might have a .htaccess file in a directory that overrides the display_errors setting set in php.ini. From your post I assume you didn't explicitly add this but a few frameworks do this by default so might be added that way. Look for a line like this in your .htaccess file:

php_value display_errors 0

and change the value to 1.

jcmoney
I did a search in that file and there is no line that contains that command...
twinbornJoint
A: 

Turns out there were several directory issues. Thanks guys.

My development directory was changed from the assigned directory during the install.

twinbornJoint
To help future searchers, what issues were there?
Blair McMillan