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) |
Jump to:
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
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
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/feedReferrer
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
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
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
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
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
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)