Jump to content

Reporting errors not working


EchoFool

Recommended Posts

Fatal parse errors are the most common reason for blank pages (the second most common would be code that does not output anything.) You cannot set the error_reporting/display_errors settings in your code and display fatal parse errors because your code is never executed to change the settings.

Only if log_errors is ON, error_log has been setup, and error_reporting has been setup.

 

All of these settings must be set before your script is requested in order to display fatal parse errors.

 

You should be developing and debugging php code on a local development system anyway, at least past the point where you are experiencing fatal errors.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.