v1.27 "Cannot modify header information" error

11 posts by 4 authors in: Forums > CMS Builder
Last Post: March 16, 2009   (RSS)

By (Deleted User) - March 8, 2009

I have used CMS in the past and never received this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/hostname/public_html/links.php:1) in /home/hostname/public_html/links.php on line 1

("hostname" replaced my actual account name)

The template file contains the link (actual) to the css file, but the CSS has been ignored.

I am using v1.27. I can send actual links if you like.

Re: [Dave] v1.27 "Cannot modify header information" error

By (Deleted User) - March 9, 2009

I have attached my actual working file. The live file is at http://www.calvertarts.org/links.php. Only this and the Contact page are using the CMS. I have implemented previous CMS versions in the past - just never saw this error.

Re: [poorrichard] v1.27 "Cannot modify header information" error

By Dave - March 9, 2009

Sorry, can you try and re-attach that file. It didn't come through. You need to click "Upload" before you click "Post". It's part of how the forum software works (not ours).
Dave Edis - Senior Developer
interactivetools.com

Re: [poorrichard] v1.27 "Cannot modify header information" error

By Dave - March 11, 2009

Hi Jim,

I can't spot anything in the code. If you want to send me CMS and FTP login details I could take a closer look for you. Email dave@interactivetools.com. Email, don't post login details to the forum.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [poorrichard] v1.27 "Cannot modify header information" error

By oren3419 - March 12, 2009

I have used CMS in the past and never received this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/hostname/public_html/links.php:1) in /home/hostname/public_html/links.php on line 1

("hostname" replaced my actual account name)

The template file contains the link (actual) to the css file, but the CSS has been ignored.

I am using v1.27. I can send actual links if you like.


I had the same issue, dunno why this is relevant, but I solved it by saving the file as UTF-8 without BOM. You need an editor like Notepad++ do do this...

Re: [oren3419] v1.27 "Cannot modify header information" error

By (Deleted User) - March 12, 2009 - edited: March 12, 2009

Geez - I should have thought of that for as many times I have seen it. Thanks for the second set of eyes.

Anything Dave?

Jim

Re: [poorrichard] v1.27 "Cannot modify header information" error

By (Deleted User) - March 12, 2009

I tried saving the file in text - no joy.

Re: [poorrichard] v1.27 "Cannot modify header information" error

By Dave - March 13, 2009

Hi Jim,

Typically that error means you have some content before the <?php header ... ?> line. It could be a UTF8 issue.

Another thing you could try is removing that header line altogether.

If neither of those work feel free to submit a support ticket and we can look at it for you.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] v1.27 "Cannot modify header information" error

By (Deleted User) - March 14, 2009

I toiok out the line

<?php header('Content-type: text/html; charset=utf-8'); ?>

from the very top, and that did the trick. That line was part of the CMS generated code using simple menuing.

Regards
Jim