New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error of "[preflight] Unable to parse at line 2 (near "<?php")." when trying to run remote:drush commands #1849

alphex opened this Issue Apr 19, 2018 · 6 comments


None yet
4 participants

alphex commented Apr 19, 2018

Expected behavior

Running terminus remote:drush uli should get me a login URL for admin.

Actual behavior

It errors out with [preflight] Unable to parse at line 2 (near "<?php").

Steps to reproduce the behavior

None that I can document. Its just happening.

This is a D8 site in question(updated to 8.5.2), and I'm able to run the same command successfully on another D852 site.


This comment has been minimized.

aaron-capellic commented Apr 25, 2018

I see this on a site without using terminus, just drush. Maybe not terminus related.


This comment has been minimized.

dirtystylus commented May 9, 2018

@alphex Just ran into this myself — so far I don’t have any other info besides the fact that my colleague and I had a ton of composer-related issues with our vendor folder. Did you manage to isolate/replicate this?

FWIW I do not have issues with the same site running on a local lando instance — drush executes cleanly


This comment has been minimized.

alphex commented May 9, 2018


This comment has been minimized.

dirtystylus commented May 9, 2018

@alphex Ah! Ty Duran


This comment has been minimized.

dirtystylus commented May 9, 2018

@alphex Downgrading to 8.1.16 solved this. I tried:

composer remove drush/drush

but that failed.

I had to manually change my composer.json and run composer update. Not sure that was proper, but it worked after I pushed code to Pantheon.


This comment has been minimized.


greg-1-anderson commented Jul 1, 2018

The status of Drush 8 for Drupal 8.4+ is "happens to work". Depending on what happens in Drupal core, it may or may not be possible for Drush 8 to continue to work e.g with Drupal 8.6+. It is also possible that a contrib module could become incompatible with Drush 8, depending on what APIs it uses.

Work is underway to improve support for Drush 9 on Pantheon. It will probably be a while yet before Drush 9 is fully supported on Pantheon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment