I get the following errors

Cannot modify header information - headers already sent by (output started at C:\htdocs\www\sites\all\modules\ldap_lookup\ldap_lookup.auth:140) in C:\htdocs\www\includes\common.inc on line 141.

and

Cannot modify header information - headers already sent by (output started at C:\htdocs\www\sites\all\modules\ldap_lookup\ldap_lookup.forms:390) in C:\htdocs\www\includes\common.inc on line 141.

fixed it by removing ?> at the end of ldap_lookup.auth and ldap_lookup.forms

Comments

kibblewhite’s picture

This is because there was a space after the `?>`. When copying the source becareful not to have new lines or spaces after the PHP closing tag.

Example:
"


"
is okay

"


"
is not good because that new line will count as output and you will get the 'headers already sent' warning.

kibblewhite’s picture

Note: Please refer to the spaces and new lines after `?>` as this form formats what is in between the php tags...

Example:
"...
?>"
is good

"...
?>

"
is not good

kibblewhite’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
bornsix’s picture

Here is the solution to the "Cannot modify header information headers already sent" error message. zen theme
I moved the files and re-unpacked the theme. Apparently you had used "binary" instead of "ASCII" when you transferred and all the files had DOS ^M's at the end of every line.

I used winzip to uncompress the files