drupal warning: Cannot modify header information - headers already sent by
drupal warning: Cannot modify header information - headers already sent by
As i have worked on Drupal many years, and my many friends and clients ask me many problems when ever they faced them..
suddenly some time before my client start facing problem with drupal “blank page” when ever he try to do ”login”, “logout” “update any page” or setting  with this error
warning: Cannot add header information - headers already sent in d:\web\drupal\module.php on line 12.”
And you wont believe i have tried many way to fix this..and didnot find any way.. but suddenly i have start few php basic redirect problem.
coz this is not drupal coding or installtion problem in PHP redirect problem and you will surprized to know what i did to fix this problem,
This problem in your themes, Template.php you must check that before start more research on this matter.
must check is there any white space before and end of php tags
– white space could be here —
<?php
—-
?>
– white space could be here —
Â
 please remove that and check it will work fine.
thanks ![]()











August 12th, 2009 at 2:27 am
Hii..Buddy thanks for nice writing. I had remove white spaces from my module and found that a my website is running smoothly.
Thanks Again..
September 22nd, 2009 at 6:33 pm
Thanks, removing white spaces solved my problem.
February 2nd, 2010 at 7:24 am
hii, i am getting same message but there is no space in my template. this error come when m trying to customize user module. after this error i revert all changes , but still having problem on every form submission.
Thanks
February 25th, 2010 at 1:54 pm
Guys, remember to save Your files as UNIX ANSI and most of the problems will vanish.
…all the core in drupal coded that way, and when You mix things, You get burned!..
May 4th, 2010 at 9:08 am
it worked like a charm!! Many thanks..
June 3rd, 2010 at 4:32 pm
Superior topics, it open my eye , thanks