1

I am on a local server using ampps and I can change php version from 5.3 to 5.4 but when on 5.4 than my website just goes blank. Error reporting is turned on to error_reporting(E_ALL | E_STRICT), but still don't get any errors in order to fix any problems with 5.4

What can I do to debug and get all errors to show? Thanks in advance.

Edit: All errors are turned on in the corresponding php.ini file but still just blank

user558134
  • 1,071
  • 6
  • 25
  • 38

2 Answers2

0

Enable all error message with error_reporting(E_ALL) when you change the PHP-Version you have a new php.ini file. Go in that file and enable the option display_errors then you get all errors and informations.

Otherwise set that option in your application ini_set('display_errors', 'On');

René Höhle
  • 26,716
  • 22
  • 73
  • 82
0

Responding to my own question

I located the error by using the code provided in this post as suggested by Mike B:

PHP's white screen of death

In one of my session variables I had suppressed errors with '@' @$_SESSION['sessionname']; which made the error not to show and for that reason white screen of death.

Fixed! Thanks for the help.

Community
  • 1
  • 1
user558134
  • 1,071
  • 6
  • 25
  • 38