drupal warning: Cannot modify header information - headers already sent by


3 Votes, Rating: 4.331 Star2 Stars3 Stars4 Stars5 Stars

Tags:

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 :)

Share/Save/Bookmark

4 Responses to “drupal warning: Cannot modify header information - headers already sent by”

  1. pardeep says:

    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..

  2. Narom says:

    Thanks, removing white spaces solved my problem.

  3. nishant says:

    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

  4. SoftTailors says:

    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!..

Leave a Reply


CSS (Design) - TOP.ORG