Error: Cannot modify header information

Andrzej7 - May 8, 2007 - 19:13
Project:SiteMenu
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I have installed second module of sitemenu (chenged all SITEMENU and sitemenu in sitemenu module fo "autorzy").

Now I have error after every edit:

warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/www/htdocs/mysite.com/modules/autorzy/autorzy.module:1) in /usr/local/apache/www/htdocs/mysite.com/includes/common.inc on line 311.

And a blank page after admin settings of the module.

Any help?

#1

kbahey - May 8, 2007 - 19:38
Status:active» closed

This is a problem with autorzy module (whatever that is), and not in sitemenu.

Check that it does not have any spaces or new lines before or after the php open or close tags

<?php

?>

#2

Andrzej7 - May 9, 2007 - 03:41
Status:closed» active

Sorry for disturbing you, but

- the module "autorzy' is a duplication of your module "sitemenu" by changing all "sitemenu" for "autorzy" in sitemenu.module. I've read in the forum about this way of duplicating modules.

- it does not have any spaces or new lines before or after the php open or close tags - I've checked

- there is also a error when a user gets a feed:

Location http://mysite.pl/index.php?q=node/feed
Referrer

Tekst informacji Cannot modify header information - headers already sent by (output started at /usr/local/apache/www/htdocs/mysite.pl/modules/autorzy/autorzy.module:1) in /usr/local/apache/www/htdocs/mysite.pl/includes/common.inc on line 141.
Severity error

- when I switched off the module the error message stopped.

- it was a similar error here: http://drupal.org/node/125345

Can you help, please?

#3

kbahey - May 9, 2007 - 03:50
Status:active» postponed (maintainer needs more info)

Please try the UNMODIFIED sitemenu.module that you downloaded and see if it has a problem. If it does, please include the info here. If it has no problem, then I cannot help with code you modified on your own.

#4

Andrzej7 - May 9, 2007 - 04:55

Yes, the problem is also with the original module.

After deleting "autorzy", I've changed the version of site menu from 4 March for the current, and the error messages started:

warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/www/htdocs/mysite.pl/modules/sitemenu/sitemenu.module:1) in /usr/local/apache/www/htdocs/mysite.pl/includes/common.inc on line 311.

And blank page after editing.

But there was no such message before upgrading of the module.

#5

kbahey - May 9, 2007 - 13:34

It works fine for me. The version I use is :

//$Id: sitemenu.module,v 1.23.2.15 2007/05/01 20:12:11 kbahey Exp $

#6

Andrzej7 - May 10, 2007 - 17:42

The same version.

I tried to start again the module. The first blank screen:
http://mysite,pl/admin/build/modules/list/confirm

the next page and this error:

warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/www/htdocs/mysite.pl/modules/sitemenu/sitemenu.module:1) in /usr/local/apache/www/htdocs/mysite.pl/includes/common.inc on line 311.

#7

h4cker - November 6, 2008 - 11:45

I had the same problem for a module that i am developing and it was because of a blank line before the <?php
It is now solved

I had error in include/common.inc and sometimes in include/session.inc

(I hope it will help)

 
 

Drupal is a registered trademark of Dries Buytaert.