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.

CommentFileSizeAuthor
#2 selectize-missing-newline-2666278-d8.patch148 bytesgngn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gngn created an issue. See original summary.

gngn’s picture

Issue summary: View changes
FileSize
148 bytes
gngn’s picture

Status: Active » Needs review
gngn’s picture

Issue summary: View changes
kevinquillen’s picture

Version: 8.x-1.0-beta1 » 8.x-1.x-dev
Status: Needs review » Fixed

Thanks, I have pushed a fix into dev, along with other incoming fixes for a beta2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kevinquillen’s picture