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

Anonymous’s picture

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

Anonymous’s picture

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

Steven Mansour’s picture

Yup, fixed.