Jump to content

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

 

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.