[wp-hackers] template name at the top causing header already
sent errors
Peter Westwood
peter.westwood at ftwr.co.uk
Thu Sep 28 15:28:12 GMT 2006
On Thu, September 28, 2006 4:24 pm, Trevor Turk wrote:
> Another strange problem I've found (with an easy workaround) is that
> putting
> the Template Name at the top of a template file causes some headers
> already
> sent errors with some tricky self-submitting form stuff I've been doing
> with
> themes.
>
> Just to clarify, there are errors when I put this:
>
> <?php /*
> Template Name: PunBB/WP Login
> */ ?>
>
> ... at the top of the template file - but no errors when I put it at the
> bottom.
>
> I just happened across this by chance, and there's a workaround, so I'm
> not
> that worried about it. I just thought that somebody on this list might
> have
> come across a similar problem, or maybe somebody can explain why it's
> happening...?
>
The thing that is likely to cause the headers already sent stuff is blank
lines either before or after the comment section with the template info in
it.
westi
--
Peter Westwood <peter.westwood at ftwr.co.uk>
http://blog.ftwr.co.uk
More information about the wp-hackers
mailing list