Cannot modify header information

Found a bug? Tell us!!
Post Reply
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Cannot modify header information

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Cannot modify header information

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Post by koltregaskes »

Ta, that seems to have rid me of the error message. :-)

Kol
Post Reply