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.
When I enable maestro module, I get white space (2 lines break) before < !DOCTYPE > tag. Why?
Screenshot available.
Comment | File | Size | Author |
---|---|---|---|
#2 | maestro-remove-closing-php-tag-2088259-1.patch | 244 bytes | patrick_durold |
After enable Maestro | 26.75 KB | ijortengab | |
Before enable Maestro | 28.04 KB | ijortengab |
Comments
Comment #1
rylowry@gmail.com CreditAttribution: rylowry@gmail.com commentedI'm experiencing the same problem on version 7.x-1.4
Comment #2
patrick_duroldThe problem is caused by a closing "?>" PHP tag and the following newlines at the end of lib/lib-og_common.php. When this file is included during the bootstrap, it will output these newlines and cause all sorts of problems (in my case, with XML output).
Attached patch will remove the closing tag and fix the issue.
Comment #3
larskleiner CreditAttribution: larskleiner commentedIt would be great if we can get this patch commited to 1.x-dev as our drush make build script can't seem to apply the patch.
This works:
patch -p1 < maestro-remove-closing-php-tag-2088259-1.patch
However this doesn't work (that's what drush make seems to be using):
git apply maestro-remove-closing-php-tag-2088259-1.patch
Comment #4
blainelang CreditAttribution: blainelang commentedThanks Patrick, the patch has been committed: http://drupalcode.org/project/maestro.git/commit/77bc863
Comment #4.0
blainelang CreditAttribution: blainelang commentededit text.