Domanda

I have updated my PHP version 5.3 to 5.5 and currently it starts to display internal server error instead of showing errors.

My php.ini settings configurations are as below:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

I have already trial-and-error'ed various options available at stack overflow:

error_reporting = E_ALL
error_reporting = E_NOTICE
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
È stato utile?

Soluzione 2

With reference http://www.php.net/manual/en/errorfunc.configuration.php and fnc, I have used in two ways as given below, both of them work fine at my end.

Option 1: Add the following line at the end of php.ini file or change value if it is existed as:

display_errors = On

Option 2: Change settings run time, add below line at the top of PHP script file.

<?php

if (!ini_get('display_errors')) {
    ini_set('display_errors', '1');
}

?>

Altri suggerimenti

Try to set display_errors to On in your php.ini. See http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top