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.
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
Comment #1
gregstout CreditAttribution: gregstout commentedThe error only occurred when I was modifying modules (adding/removing) on the admin modules page.
Comment #2
taslett CreditAttribution: taslett commentedHi gregstout,
I'm surprised that would have caused an error.
A new release is available with the tags removed.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI can confirm this issue too when I run update.php