There is a blank line in the bestreply.install that is after a PHP ending "?>" and it was causing an error in my site (Drupal 6.9). The error is the infamous "Headers already sent" or "Cannot modify header information"

I am not sure how to patch, but here is the fix that I used:

file: bestreply.install
Removed lines 7-9 (the intermediate PHP close and open tags)

So the original code fragment was:

..
function bestreply_install() {
  // Create tables.
  drupal_install_schema('bestreply');
}
?>

<?php
/**
 * Implementation of hook_schema().
 */
..

And I changed it to:

..
function bestreply_install() {
  // Create tables.
  drupal_install_schema('bestreply');
}

/**
 * Implementation of hook_schema().
 */
..

Apologies, if this was on purpose and not a bug, but this changed corrected the problem in my site.

Comments

gregstout’s picture

The error only occurred when I was modifying modules (adding/removing) on the admin modules page.

taslett’s picture

Status: Needs work » Closed (fixed)

Hi gregstout,
I'm surprised that would have caused an error.
A new release is available with the tags removed.

SocialNicheGuru’s picture

I can confirm this issue too when I run update.php