Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank page with no clue as to why !!

Status
Not open for further replies.

ChrisMacPherson

Programmer
Jul 3, 2000
157
GB
I am having a frustrating time trying to figure out why my browsers are displaying a blank page to me when I load up my work.

I am coding a msg board system using php classes and all was going well until this morning when I decided to transfer the work I have done to my external webspace. After doing this, all I get is a blank screen where my site appeared before.

I am getting no error msgs in either my apache err log, in the browser, or in the php error log. I have run through the code many times to find any mistakes but cant find any. The code worked 3 hours ago so I know it works.

If anyone has any ideas I would be very grateful as I am completely stumped, or being a complete idiot. I have been coding php and using this site for a good 4/5 years now.

Thanks

Chris Macp
 
I havent checked that as it is doing the same on my home server (the one I gave settings for) and the other which I pay for. I'll have a look now.

I dont have access to my ini file, but on phpinfo page it says that display_errors are on and error_reporting has a value of 2037(whatever that means?!).

The same thing is happening on both servers though. It is a bit strange.

Chris MacPherson


 
Yep, I checked, just get the empty html page layout.

Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML><HEAD>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;></HEAD>
<BODY></BODY></HTML>

Chris MacPherson


 
Thanks for thinking, I dont really know what else I can say about it! I am sitting here stuck, having tried to comment out all sorts of bits which is suprisingly not making it any easier, but instead confusing me more.

Cheers

Chris MAcp
 
Just out of curiosity, I poked around in the PHP source code and found the numerical equivalents for the PHP error_reporting values. They're defined in zend_errors.h:

Code:
E_ERROR               1
E_WARNING             2
E_PARSE               4
E_NOTICE              8
E_CORE_ERROR         16
E_CORE_WARNING       32
E_COMPILE_ERROR      64
E_COMPILE_WARNING   128
E_USER_ERROR        256
E_USER_WARNING      512 
E_USER_NOTICE      1024

E_ALL              2047
E_CORE               48


So your setting for error_reporting is probably something like &quot;E_ALL & ~E_NOTICE & ~E_WARNING&quot;.



Are the HTML preamble and postamble output from PHP print statements or from non-parsed sections of scripts?


Want the best answers? Ask the best questions: TANSTAAFL!!
 
>>Are the HTML preamble and postamble output from PHP >>print statements or from non-parsed sections of scripts?

Sorry not sure what pre/post amble means. If it means the code I gave in post above, the empty html page, then I think that must be the output from somewhere else. I have not got any php or other code that outputs that html.

I have an include file for my html which starts :

Code:
<html>
  <head>
    <title>Messaging System</title>
    <script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;js/application.js&quot;></script>
    <link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;>
  </head>



Chris MacPherson


 
I just posted what is the first part of my header.inc file.

It is not what gets printed out in the source of the blank page I get when accessing my page. Thats why I cant figure out where the problem is. because I have no clues as to where the error lies.

I think there is some strange problem here as my code worked before, now it doesn't.



Chris MacPherson


 
The html code he gave is what Apache sends the browser if a page gives no output at all.
 
I've used at least three different versions of Apache (all on a Win machine though), and they all gave that output when the script didn't send anything.
 
It's running php as a module, and as far as I know it's only when I have a php script which outputs nothing, it doesn't do it for an empty HTML document, don't know about anything else.
 
yep, sorry, been away from the torment of trying to figure it out for at least 16 hours now, 7 hours of looking at a blank page and hoping every time I pressed refresh, was too much yesterday!

Yep, I'm on win32(XP pro) and apache 2. As I said in another post, I'm sure I've seen this before where a blank html page is printed to the screen.I think KempCGDR is right.

This is another reason its confusing, because it outputs something that I havent even written, so I have no idea where that came from either.

I am hopefully getting some help tommorrow, so maybe that will solve it, if so I'll post the solution or maybe if its a blaringly obvious mistake I will make something up!!

Cheers for the help. Hopefully we'll get there.





Chris MacPherson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top