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.
After I got gallery.module up and running with G2 beta (dark fiber), I started getting these errors everytime I would save a setting, make a change in Drupal, or someone would add a comment:
warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/data-dist/stevesgallery.com/modules/gallery.module:325) in /usr/local/www/data-dist/stevesgallery.com/includes/common.inc on line 155.
Drupal 4.5.2
Comments
Comment #1
(not verified) CreditAttribution: commentedCheck for empty lines in your gallery.module file outside of the <?php tags. If the gallery.module php file writes anything out, you will get this behavior.
Comment #2
(not verified) CreditAttribution: commentedOpps it ate my tags. I was saying, check for empty lines, spaces, or text outside of the PHP code tags. Typically an empty line at the end or beginning of the gallery.module file will cause this.
Comment #3
Steven Mansour CreditAttribution: Steven Mansour commentedYup, fixed.