Closed (fixed)
Project:
K2
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2006 at 05:05 UTC
Updated:
10 Mar 2006 at 16:02 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | k2-template.php-cleanup.patch | 452 bytes | tclineks |
Comments
Comment #1
ica commentedtake out
?>
at the end of template.php on K2 theme
it should be checked on and fixed on theme download
Comment #2
chrisada commentedThe 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.
Comment #3
ica commentedme 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
Comment #4
tclineks commentedThere is a trailing space -- that's the issue.
Here's a patch to clean that and few other issues with template.php
Comment #5
chrisada commentedThis 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.
Comment #6
(not verified) commentedComment #7
introfini commentedI think this must be a bug in the PHPtemplate engine, because the php tag should be closed.
introfini
onossocasamento.pt
Comment #8
introfini commentedsorry, it was the is a trailing space issue.
introfini
onossocasamento.pt