coson
asked on
PHP The Screen goes Blank!!!
Good Day,
The other day I was working on a development box and when I went to view my PHP page after I made some changes to it, the page went blank!! It wasn't like that last week. If there was an error, then I would get some sort of descriptive error message.
Now, the page is just blank white. I finally managed to track down the problem (missing ")"). The page now displays. After snooping around on the Net, I found out that if display_errors is set to off, this will happen. This is set for production server purposes, if I'm correct.
This is fine and dandy, but how do I override this? I tried using ini_set('display_errors', '1') and set error_reporting to E_ALL and I still can't get any error messages to appear!
Is this understanding of the situation correct??
coson
The other day I was working on a development box and when I went to view my PHP page after I made some changes to it, the page went blank!! It wasn't like that last week. If there was an error, then I would get some sort of descriptive error message.
Now, the page is just blank white. I finally managed to track down the problem (missing ")"). The page now displays. After snooping around on the Net, I found out that if display_errors is set to off, this will happen. This is set for production server purposes, if I'm correct.
This is fine and dandy, but how do I override this? I tried using ini_set('display_errors', '1') and set error_reporting to E_ALL and I still can't get any error messages to appear!
Is this understanding of the situation correct??
coson
ASKER
I tried only the ini_set and setting error_reporting to "blabber-mouth" mode
try ini_set("error_reporting", "E_ALL");
probably someone changed the php.ini ... do you have access to this file ?
Same thing happened to me, I declared the error reporting level in HTACCESS and a PHP file so it conflicted with each other and when an error was made it wouldnt appear or page was blank. Make sure you dont have the error reporting set in multiple places with the same value.
-Nick
-Nick
ASKER
Someone *did* change the php.ini file and I don't have access to it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I checked with phpinfo(); and display_errors was set to off.
I just find it unusual that if display_errors is set to Off, then why wouldn't I be able to use ini_set('display_errors', '1') or ('display_errors', 'On') to see any output.
I just find it unusual that if display_errors is set to Off, then why wouldn't I be able to use ini_set('display_errors', '1') or ('display_errors', 'On') to see any output.
did you tried to edit the PHP.ini or you try only with ini_set ... ?