After installing mailhandler on a freshly installed 4.3.0 system with only the default module enabled and only mailhandler added, I get the following error when I log out (and a similar one after logging in). No page gets displayed, just this error (taken from the logs):

Location: /user 

Message: warning: Cannot add header information - headers already sent by 
(output started at /homepages/27/d92096621/htdocs/www/modules/mailhandler.module:675) 
in /homepages/27/d92096621/htdocs/www/modules/user.module on line 668. 

Any suggestions? Thanks!

Comments

mikemee’s picture

I should have mentioned that if I disable the mailhandler module, then this error doesn't occur.

Navegante’s picture

Hi

The problem is that your mailhandler.module is not working, prints a error before you see any page.
This error is comun if any module prints a error.

You must put your mailhandler.module working fine, and the error "page error: Cannot add header information - headers already sent by ..." disapears.

sorry my english

blaine-1’s picture

Make sure there are no blank lines at the end of the mailhandler.module file.

mikemee’s picture

There was a blank line at the end of the mailhandler.module file. When I deleted it the errors went away. Strange. The rest of the module was working fine (retrieving mail, changing settings etc).

I'll leave this bug active as I double checked and this is how the module was released in the 4.3.0 version (though perhaps its since been fixed in CVS?).

For what its worth, here's the patch:

--- mailhandler/mailhandler.module      Sun Dec 21 06:22:21 2003
+++ www/modules/mailhandler.module      Fri Jan 16 13:27:00 2004
@@ -671,4 +671,3 @@
 }
 
 ?>
-

Thanks for all your help everyone. This module solved a real problem for me!

killes@www.drop.org’s picture

Assigned: Unassigned » killes@www.drop.org

removed the trailing newline.

Anonymous’s picture