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.
File selectize/selectize.module
is empty.
That is almost empty - it contains a single opening <?php tag.
And nothing more - that's the problem.
If there is no newline after the tag, the tag itself is written as first output to at least
- HTML page:
<?php <!DOCTYPE html>
- json request:
<?php[{"command":"settings","settings":{"...
- drush cache-rebuild:
<?phpCache rebuild complete.
Browsers ignore the starting tag in the HTML page and drush doesn't care - but a json request fails.
I do not know wether this is PHP or Drupal, but everything's okay if we follow the drupal coding standards:
All text files should end in a single newline (\n)
https://www.drupal.org/coding-standards
Patch (very very minor one) applied.
Comment | File | Size | Author |
---|---|---|---|
#2 | selectize-missing-newline-2666278-d8.patch | 148 bytes | gngn |
Comments
Comment #2
gngn CreditAttribution: gngn at Computer Manufaktur GmbH commentedComment #3
gngn CreditAttribution: gngn at Computer Manufaktur GmbH commentedComment #4
gngn CreditAttribution: gngn at Computer Manufaktur GmbH commentedComment #5
kevinquillen CreditAttribution: kevinquillen at Velir commentedThanks, I have pushed a fix into dev, along with other incoming fixes for a beta2.
Comment #7
kevinquillen CreditAttribution: kevinquillen at Velir commented