Jump to content

[SOLVED] My errors stopped working!


rondog

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/121273-solved-my-errors-stopped-working/
Share on other sites

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

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

 

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.