[Templates] Exceedingly strange problem
darren chamberlain
dlc@users.sourceforge.net
Mon, 23 Sep 2002 09:37:08 -0400
* Hann, Brian <Brian.Hann@umb.com> [2002-09-20 16:50]:
> For some reason, in the template I am trying to display, sometimes I
> get nothing, no header or text so I get the 500 error and the
> "premature end of script headers" line in my error log.
It sounds like the template is outputting something to STDOUT before the
headers are being printed.
> Now if I delete a certain number of lines from the end of my file, it
> displays. The last lines are just HTML, no directives. The VERY
> strange thing is, the number of lines I have to remove to get it to
> display is not constant. I can remove the last 10 and it will always
> display, if I remove the last 9 sometimes it will display, sometimes
> it won't.
So, what are the last 10 (ish) lines of the template? I would imagine
there's a plugin in there that is printing to STDOUT behind your
script's back, which is what is causing the errors.
(darren)
--
Distrust any enterprise that requires new clothes.
-- Henry David Thoreau