Loading...
 
Skip to main content

Architecture / Installation


Cannot modify header information - headers already sent

I've installed successfully, and then tried to change the template — and got this error:

Warning: Cannot modify header information - headers already sent by (output started at ...tikiwiki/templates_c/en...tiki.tpl.php:6) in ...tikiwiki/templates_c/en...header.tpl.php on line 5

(just mentally replace '...' with 'domaininfo & random stringfilenamestuff')

What's frustrating is that somehow this strips the page not only of style but also of content: all I see is the sidemenu, img at http://www.karinoyo.com/picture5.pngQuestion. Incidentally, "Jump to Content" just takes me down to the line that thanks me for installing Tiki, and... that's it.

I searched the forums & documentation, and came up with several workarounds/answers. None worked. I looked "for extra linefeeds or spaces around the PHP start points in the files named in the script" and... there aren't any (other than the usual single empty break between sections for easier reading). I went to the file named, and line 5 is empty: when I removed that empty line, the error disappeared but the page otherwise remained the same. (And it does not change regardless of what I click in the menu; it just reloads as the same.) I also tried the modifications suggested in InstallTikiUnderSafeMode, and that did nothing (so I set those files back as they'd been).

I also tried the option of creating user-acct and logging in as that to undo/redo the changes, but it won't let me create a user account. Not because it won't, but I just can't see it. All I can see is the menu on the left.

Any other suggestions? Even maybe directions on where to hack the code to force the template to some other choice, and see if that removes the xml/header issues?

I think I figured it out. Here's what I did:

I opened templates/header.tpl, and line 5 was:

You are most likely wanting to modify the top of your Tiki site. Please consider using Site Identity feature or modifying tiki-top_bar.tpl which you can do safely via the web-based interface. --- *}

So perhaps the sys just really needs the ?xml command to be on its own line. I put in a line break, and reuploaded it with fingers crossed. Nothing happening, so then I deleted the /templates and /templates_c subdirectories, and reuploaded them.

Now it works. At least, it does so far...