Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By _bullseye_ on
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
What version of drupal do
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 ?
Using 4.7.3
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
".header duplication
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
node and sequence seem to be in sync
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.
White screen problem solved!
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!