Hi all

I have developed a new module in drupal for my site .It works fine untill any user login or logout of the site.
On any login or logout the screen went blank n jus shows this warning:

warning: Cannot add header information - headers already sent by (output started at /var/www/html/drupal/modules/user_statistics.module:206) in /var/www/html/drupal/includes/common.inc on line 155.

by the way user_statistics is the name of my new module.
I think there is some problem in redirection .I dunno how to solve it Please help me.I need urgetnt help.

Thanx in advance :)

Rituka

Comments

rituka’s picture

I got the solution from previous forum discussion.thanx to all those involved in that discussion.
I removed empty lines from the file n now its working fine. :)

Tommy Sundstrom’s picture

Often (but not always) this error is caused by a space or newline after the last ?> in a template (or before the first <?php)

You can make a search here on the Drupal site for other couses and solutions. This error seams to be one of the big mysteries of Drupal and it has bitten quite a lot of people.