Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error of "[preflight] Unable to parse at line 2 (near "<?php")." when trying to run remote:drush commands #1849
It errors out with
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.
@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
Mark.Pantheon support says it has to do with DRUSH 9, as in, its not supported on Pantheon yet. When you do composer require drush/drush it gives you drush 9. you need to force drush 8. I have not yet, though, received a straight word on if Drush 8 is even useful for Drupal 8.5+ See the compatibility chart here : http://docs.drush.org/en/master/install/ ] duran goodyear] alphex information solutions, llc] w: http://alphex.com // v: 267.225.7439 // e: email@example.com On Wed, May 9, 2018 3:13 PM, Mark Llobrera firstname.lastname@example.org wrote: @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? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
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.