Cannot modify header information - headers already sent
ica - January 7, 2006 - 05:05
| Project: | K2 |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
Just updated a test site from 463 to 470b2
Error on all pages below
* warning: Cannot modify header information - headers already sent by (output started at /home/wrap/public_html/dp/themes/k2/template.php:12) in /home/wrap/public_html/dp/includes/common.inc on line 247.
* warning: Cannot modify header information - headers already sent by (output started at /home/wrap/public_html/dp/themes/k2/template.php:12) in /home/wrap/public_html/dp/includes/common.inc on line 247.

#1
take out
?>
at the end of template.php on K2 theme
it should be checked on and fixed on theme download
#2
The error indeed came from that line in the code.
Removing the closing php tag seems to help. But I still don't understand why it help.
#3
me neither.. i turnedup here and posted the errors i got.. no one replied.. so after many hours trial/error i discovered this... (if i remember correctly i have checked the another working theme's code)
yes a code should be closed at the end but this is not the case on themes
anyways.. it should be debugged properly.. but the theme works now
#4
There is a trailing space -- that's the issue.
Here's a patch to clean that and few other issues with template.php
#5
This and some other changes are in HEAD now. I tagged it as 4.7, but somehow the tarball isn't updated for a few days now.
#6
#7
I think this must be a bug in the PHPtemplate engine, because the php tag should be closed.
introfini
onossocasamento.pt
#8
sorry, it was the is a trailing space issue.
introfini
onossocasamento.pt