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.
block_date.module contains a single blank line. All .module files are autoloaded by Drupal, this then causes a blank line at the top of all HTML output. This isn't always a problem but for e.g. xmlsitemap this has the side effect of making the XML invalid because the XML declaration is expected to be on the first line of the file and this pushes it to the second line.
In Drupal 8 .module files are no longer required so the file can simply be deleted.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3225466.patch | 153 bytes | longwave |
Comments
Comment #2
longwaveComment #3
borutpiletic CreditAttribution: borutpiletic as a volunteer commentedI can confirm, this can cause a lot of issues on your site.
Apart from getting "headers already sent" warning messages, image styles also stopped working for me (image style files for new images will not get generated).
I am using this patch right now, it removes empty module file as expected :)
Thanks!
Comment #4
longwaveThanks for confirming this solves the issue, marking RTBC based on the above comment.
Comment #5
junaidpvThis issue leads to corrupted configuration export .gz.tar file as well. Marking as critical.
Comment #6
dmezquiaHi @rameshbabug please can you add @longwave as maintainer ?? He is interested in helping with this module.
Comment #8
longwaveCommitted.