rondog Posted August 25, 2008 Share Posted August 25, 2008 Whenever I had an error in my PHP..ie. missing a semi-colon, I would get an error. This past week my pages just turn white and I get nothing..How would I turn it back on? In my phpinfo file, they are turned off: display_errors Off Off I dont have a php ini file I dont think...I am using 1AND1 as a shared host.. anyone know? Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/ Share on other sites More sharing options...
wildteen88 Posted August 25, 2008 Share Posted August 25, 2008 Either add error_reporting(E_ALL); ini_set('display_errors', 'On'); at the top of your scripts. Or add the following to an .htaccess file in your sites root folder (where you upload your sites files). php_value error_reporting E_ALL php_flag display_errors On Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625195 Share on other sites More sharing options...
revraz Posted August 25, 2008 Share Posted August 25, 2008 You could also check with your host to see if you do have access to your php.ini file, so you don't have to enter that in every one of your scripts. Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625197 Share on other sites More sharing options...
rondog Posted August 25, 2008 Author Share Posted August 25, 2008 Ok I actually found my ini file. I turned display_errors to On and according to my phpinfo it is on as well, yet no errors are being displayed ??? Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625201 Share on other sites More sharing options...
wildteen88 Posted August 25, 2008 Share Posted August 25, 2008 What level is error_reporting set to? it should be set as E_ALL (PHP represents this as 6143) Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625204 Share on other sites More sharing options...
rondog Posted August 25, 2008 Author Share Posted August 25, 2008 Its set at 4177 I just made this quick little file that should return an error..I just get blank :[ <?php error_reporting(E_ALL); ini_set('display_errors', 'On'); function getword() { return "test" } echo(getword()); ?> and this is in my ini file: error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625209 Share on other sites More sharing options...
rondog Posted August 25, 2008 Author Share Posted August 25, 2008 ok I just made that error_reporting = E_ALL and that works..thanks for the info man Quote Link to comment https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/#findComment-625215 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.