drewbee Posted April 8, 2008 Share Posted April 8, 2008 Everyone, I can't get error reporting to work on some of my files, yet it works on others. I cannot see what the consistency or the changes are in between, but at the top of every php file (class and class host file) I have the following: error_reporting(E_ALL); ini_set('display_errors', '1'); IN the php.ini I also have set error_reporting = E_ALL; When a fatal error occurs (sometimes), all I get is a white screen; and this is terriblely difficult to debug as you can imagine. Does anyone have any clues or insight as to what might be going on here? Quote Link to comment https://forums.phpfreaks.com/topic/100194-error-reporting/ Share on other sites More sharing options...
darkfreaks Posted April 8, 2008 Share Posted April 8, 2008 try: <?php ini_set('error_reporting',E_ALL);?> Quote Link to comment https://forums.phpfreaks.com/topic/100194-error-reporting/#findComment-512304 Share on other sites More sharing options...
PFMaBiSmAd Posted April 8, 2008 Share Posted April 8, 2008 Code in a file never runs when there is a fatal parse error, so any php code statements to change the error reporting or display errors settings won't help. Set the following line in your php.ini, make sure the php.ini your are changing is the one php is using, and stop and start your web server to get any changes made to php.ini to take effect - display_errors = On Quote Link to comment https://forums.phpfreaks.com/topic/100194-error-reporting/#findComment-512385 Share on other sites More sharing options...
drewbee Posted April 8, 2008 Author Share Posted April 8, 2008 hi MabiSm, I did have this set as well. While all I did was updated the PHP.ini with the same values that were already set, it seems to be taking effect now. Strange. Quote Link to comment https://forums.phpfreaks.com/topic/100194-error-reporting/#findComment-512403 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.