EchoFool Posted March 27, 2010 Share Posted March 27, 2010 Hey, I have this on my page: error_reporting(E_ALL|E_STRICT); ini_set("display_errors", 1); But for some reason i still get white pages when i get errors... have i got the right errors set or does it not include all error types? Quote Link to comment https://forums.phpfreaks.com/topic/196672-reporting-errors-not-working/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 27, 2010 Share Posted March 27, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/196672-reporting-errors-not-working/#findComment-1032571 Share on other sites More sharing options...
EchoFool Posted March 27, 2010 Author Share Posted March 27, 2010 so does my server log the cause of a white page in my logs file .txt or i just got to try to find the mistake ? Quote Link to comment https://forums.phpfreaks.com/topic/196672-reporting-errors-not-working/#findComment-1032572 Share on other sites More sharing options...
PFMaBiSmAd Posted March 27, 2010 Share Posted March 27, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/196672-reporting-errors-not-working/#findComment-1032573 Share on other sites More sharing options...
EchoFool Posted March 27, 2010 Author Share Posted March 27, 2010 Hmm its first time ive had a white screen as opposed to a error being displayed in over a year. I'l have to investigate. Quote Link to comment https://forums.phpfreaks.com/topic/196672-reporting-errors-not-working/#findComment-1032575 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.