Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.