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
Comment #1
patrickd commentedOkay, 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...
Comment #2
patrickd commentedUpdate: 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
Comment #3
patrickd commentedProblem was Drupal 7 returns a HTTP "Content-Type: " while Drupal 8 (due to symfony) returns "content-type: "
strtolower() all the headers!
Comment #4
patrickd commentedcleaning up