PDA

View Full Version : Anyone get this error? Premature end of script headers



Hyle
July 28th, 2006, 16:16
Hi,

This is just a shot in the dark; but, I have no idea what is causing the error below. It occured in 1.5 and still occurs in 1.6. Unfortunately, I have modified Linker, Output, and MonoBook.php plus I have several homegrown extensions plus I run SmartFeed, magpieRSS, and some other junk, plus I have Google and amazon adds on the pages. And, I have 3 wikis running out of three subdomains against different databases in MySQL.

[Fri Jul 7 04:18:56 2006] [error] [client 202.12.16.35] Premature end of script headers: /home/public_html/csow/index.php"

When it happens, I am often frozen out for a while of cPanel, e-mail, and FTP as well.

Any help as to the cause and how to run down the problem would be appreciated. There were too many changes around the time it started for me to know even where to start eliminating causes.

RainbowCrane
August 1st, 2006, 00:30
One thing that might cause it is the addition of a blank line at the end of one of the PHP files you've edited. Blank lines signal the end of headers, and it's a common PHP problem to accidentally do this:
php?>\n
\n

because it looks prettier in the editor, but you want to make sure there are no trailing newlines after the closing PHP tag.