When launching a drupal 8 sandbox, the code-snippet which is showing the info-bar (countdown, current project sandbox and simplytest backlink) and pre-filling the loginform with admin/admin is working.

The code-snippet is contained within a php file called snippet.php which is included by php.ini configuration:

auto_prepend_file = "/home/[sandbox-id]/www/snippet.php"

This seems to work for drupal 6, 7 and even for the installer of drupal 8 (yet) - but not on any site handled through index.php

I guess this is maybe a problem with symfony?

Comments

patrickd’s picture

Okay, so this only seems to be a problem when launching a sandbox of "drupal", "8.x"

When launching any D8 module (eg. devel) or distribution (eg. spark) the info bar works fine...

patrickd’s picture

Update: Turns out the reason why it worked for other D8 project was a leftover code snippet #1844954: "simplytest-snippet-infobar" injection breaks Drupal's ajaxy stuff (in Drupal 8.x)

Now all D8 projects have this problem again

patrickd’s picture

Status: Active » Fixed

Problem was Drupal 7 returns a HTTP "Content-Type: " while Drupal 8 (due to symfony) returns "content-type: "

strtolower() all the headers!

patrickd’s picture

Status: Fixed » Closed (fixed)

cleaning up