Jump to content

Blank pages...driving me crazy!!!!


Recommended Posts

Any time I get a PHP error, all I see is a blank screen.  Errors/notices will not display to the screen or save to a log file. 

 

I'm running XAMPP with PHP 5.3.1.  I used to run PHP on IIS and had no problems displaying errors.  Now that I'm on Apache (still running on a Windows machine), I can't get any error or notice to display on the screen or saved to a log file.  Here's what I've checked...

 

1) Checked my php.ini file location...pointing to the correct file.

2) In php.ini, display_error, display_startup_errrors are on

3) error_reporting set to E_ALL

 

I can't figure out why errors won't display? I've tried the following code, purposely leaving off the "; on the echo to create an error.  All I get is a blank screen, no indication of an error.

 

<?php

echo "testing

?>

 

What am I missing??? Any help would be greatly appreciated!

Link to comment
https://forums.phpfreaks.com/topic/224640-blank-pagesdriving-me-crazy/
Share on other sites

Arrgghhh!  I figured it out.  After you asked what error_reporting said in the phpinfo(), I decided to change it and see what happened.  For some reason it was set to E_ALL & E_NOTICE & E_DEPRECATED.

 

I changed this to just E_ALL (which I thought it was already set to), and now my errors are showing up!

 

Thanks for the help Pikachu2000.

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.