Re: Totally blank page served up when any major PHP errors occur
- From: Gary Hasler <garyhasler@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 07 Apr 2009 16:06:35 GMT
Jerry Stuckle wrote:
Gary Hasler wrote:Oops--should be PHP 5.2.9.Jerry Stuckle wrote:Gary Hasler wrote:Always running as Apache module.When I have a major PHP error, I get a totally blank page (no html at all), just the header.
"HTTP/1.x 500 Internal Server Error..." etc.
In the apache error log, it reads something like:
"PHP Parse error: parse error in C:\\www\\inprogress_project.php on line 26..."
This is our in-house server used for testing, so I have all error reporting turned on full (I think). EG in php.ini, I have: "error_reporting = E_ALL" and "display_errors = On". Why am I just getting a blank page?
[Apache 2.0.55; PHP 5.2.99; Windows XP Pro SP3]
You may not be using the php.ini file you think you are. Set up a page with just:
<?php
phpinfo();
?>
Also - are you running PHP as an Apache module or a CGI?
According to phpinfo:
Loaded Configuration File: "C:\Program Files\PHP\php.ini"
which contains the following (commented lines removed):
----SNIP
But what does phpinfo() show for those settings? They can be overridden, i.e in your Apache configuration or .htaccess file.
Also,what is the failing line in your code? A parse error *should* be displayed, but it looks like it's such a severe error that the web server is crashing.
I am curious where you got the php-5.2.99 - or is that just a typo?
Also - check your phpinfo() for the extensions you have loaded, and what you should have loaded.
And in my .htaccess file I have...WHOA!...STOP THE PRESSES...
Now that you mention it, for some reason I have the line:
Options -Indexes +FollowSymLinks +Includes
....which since I don't have includes should probably be
Options -Indexes +FollowSymLinks -Includes
....and that fixes it! Now PHP reports errors the way it should.
You've done it again, Jerry!
.
- References:
- Totally blank page served up when any major PHP errors occur
- From: Gary Hasler
- Re: Totally blank page served up when any major PHP errors occur
- From: Jerry Stuckle
- Re: Totally blank page served up when any major PHP errors occur
- From: Gary Hasler
- Re: Totally blank page served up when any major PHP errors occur
- From: Jerry Stuckle
- Totally blank page served up when any major PHP errors occur
- Prev by Date: Re: run code on first page load only
- Next by Date: Re: Regarding Font
- Previous by thread: Re: Totally blank page served up when any major PHP errors occur
- Next by thread: Re: Totally blank page served up when any major PHP errors occur
- Index(es):
Relevant Pages
|