warning: Cannot modify header information - headers already sent by (output started at /vservers/blogsnhc/htdocs/drupal/modules/node.module:1) in /vservers/blogsnhc/htdocs/drupal/includes/common.inc on line 139.

I have searched and read several "solutions" to this problem. Is there a definitive solution?

There are NO extra lines or closing PHP tags at the end of my node.module file.

What is the next step?

Comments

Cerel’s picture

What version of drupal do you have ?

Does that warning happen in any link ? Or only on some ?
Maybe a module active on certain pages is the cause.

You speak of the end of the file, but what about the beggining of the file ?
Is your "node.module" file starting with "<php", or is there a blank line ?

_bullseye_’s picture

I'm on 4.7.3,

I get this warning whenever i modify the node.module, and sometimes randomly. The only page i have been looking at lately is my /syndication page, as i am having problems with my RSS feed links.

The beginning of my node.module file does start with "<?php".

idcm’s picture

I have struggled with the same issue. After countless hours digging around to find out what went wrong, I have learned to check the sequence table. It isn't always the issue but it has been in more instances than not.

For example, if my node table's last record is 97 but the sequence table record called node_nid shows 27, I reset the sequence table record to be 97 - getting the counter back on track.

hope this helps
IDCM

_bullseye_’s picture

Thanks for the heads-up, but those seem to be in sync.

Not sure if this is related, but all i get now is white screens after trying to log in. I can't even use full urls, because my login won't stick.

grrr.

_bullseye_’s picture

For anyone who is having the white screen of doom problem, please refer to this reply:

http://drupal.org/node/77457#comment-143131

I was positive that i had no white space at the end OR at the beginning of my node.module file, but after viewing in a hex editor, i was very happy to admit that there were, indeed, invisible crap characters before my opening <?php statement.

Hooray beer!