Page 1 of 1

Cannot modify header information

Posted: Sun Sep 02, 2007 10:28 am
by koltregaskes
Hello,

I'm getting the following error whenever I click on a link to an external site in any of my blog articles:

Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/plugins/serendipity_event_google_analytics/UTF-8/lang_en.inc.php:1) in /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/exit.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/plugins/serendipity_event_google_analytics/UTF-8/lang_en.inc.php:1) in /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/exit.php on line 30


This error even happens on links that used to work. So I can only think it's one of the updates I've installed from the Configure Plugins page.

I get the same error (but line 11) when I first go into the admin page. It appears at the top of every admin screen. Plus also when I publish and edit any article, e.g.:

Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/plugins/serendipity_event_google_analytics/UTF-8/lang_en.inc.php:1) in /homepages/20/d91352228/htdocs/squashyfrog/pixelpost/blog/serendipity_admin.php on line 11
If you have not submited your sitemap to www.google.com, do it now with visiting this link.
You can also add it to your robots.txt, see here for details.


How do I go about fixing this? All I've done it update from the Configure Plugins page, nothing manual.

My blog is here: squashyfrog.com/blog/

Kol

Re: Cannot modify header information

Posted: Sun Sep 02, 2007 5:55 pm
by garvinhicking
Hi!

Which version of the google analytics do you run? The official version has no UTF-8/lang_en.inc.pohp file! In that file you seem to have extra characters before the opening <?php tag, like a UTF-8 BOM. That needs to be removed, but the question is why you have that file.

Regards
Garvin

Posted: Sun Sep 02, 2007 6:01 pm
by koltregaskes
Hi Garvin,

I have no idea what version. Is this something that should have been set-up? How do I find out the version?

Kol

Posted: Sun Sep 02, 2007 7:07 pm
by garvinhicking
Hi!

You should try to simply remove the "UTF-8/lang_en.inc.php" file. Then the plugin should fall back to the main lang_en.inc.php file, and this shouldn't contain any BOM marks.

Regards,
Garvin

Posted: Sun Sep 02, 2007 8:09 pm
by koltregaskes
Ta, that seems to have rid me of the error message. :-)

Kol