PDA

View Full Version : Error with taxonomy sensitive snippet


peach
06-02-2006, 07:22 AM
I implemented this snippet from Nick Lewis his blog:
http://www.nicklewis.org/node/825

After putting the code in my template files I got the following errors:

vBulletin Message
Unable to add cookies, header already sent.
File: /home/hlc/public_html/themes/clearwind/template.php
Line: 21

What does this mean really? And how do I keep the template code from sending errors, or something :rolleyes:

JR

peach
06-02-2006, 07:27 AM
I also noticed that the code is returning empty classes and ids

sifuhall
06-02-2006, 08:16 AM
I implemented this snippet from Nick Lewis his blog:
http://www.nicklewis.org/node/825

After putting the code in my template files I got the following errors:



What does this mean really? And how do I keep the template code from sending errors, or something :rolleyes:

JR

When PHP writes cookies to the browser it must do so before sending any page information. This error tells you that it is trying to write a cookie, but the page has already started.

Usually this is caused by a space or similar before the <?php tag

peach
06-02-2006, 08:50 AM
A thanx for the info. I removed the obsolete php open and close tags and now I can logout normally.

though, the script is still returning empty classes and ids, any thought on that?