Skip to content
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

Unable to run Drush command after using this package to replace BLT #45

Closed
aneek opened this issue Mar 17, 2024 · 3 comments · Fixed by #48
Closed

Unable to run Drush command after using this package to replace BLT #45

aneek opened this issue Mar 17, 2024 · 3 comments · Fixed by #48
Labels
bug Something isn't working

Comments

@aneek
Copy link

aneek commented Mar 17, 2024

Describe the bug
When using this package to replace BLT in a Lando development environment, Drush 11.6 and Drush 12 encountered FATAL error.

To Reproduce
Replace BLT with this package with Lando

Expected behavior
Drush command should run properly or lando setup should run properly.

Error Message

www-data@f44f7962e95a:/app$ /app/vendor/bin/drush 

Fatal error: Uncaught ArgumentCountError: Too few arguments to function Acquia\Drupal\RecommendedSettings\Drush\Commands\MultisiteDrushCommands::__construct(), 0 passed and exactly 1 expected in /app/vendor/acquia/drupal-recommended-settings/src/Drush/Commands/MultisiteDrushCommands.php on line 34

ArgumentCountError: Too few arguments to function Acquia\Drupal\RecommendedSettings\Drush\Commands\MultisiteDrushCommands::__construct(), 0 passed and exactly 1 expected in /app/vendor/acquia/drupal-recommended-settings/src/Drush/Commands/MultisiteDrushCommands.php on line 34

Call Stack:
    0.0041     434792   1. {main}() /app/vendor/bin/drush:0
    0.0053     435360   2. include('/app/vendor/drush/drush/drush') /app/vendor/bin/drush:119
    0.0062     446808   3. require('/app/vendor/drush/drush/drush.php') /app/vendor/drush/drush/drush:4
    0.0568    2250272   4. Drush\Runtime\Runtime->run($argv = [0 => '/app/vendor/bin/drush']) /app/vendor/drush/drush/drush.php:79
   ......
 [warning] Drush command terminated abnormally.

Screenshot-2024-03-18-000977

Screenshot attached.

@aneek aneek added the bug Something isn't working label Mar 17, 2024
@jacqui1811
Copy link

Having the same problem.
Would be grateful if someone could assist.

@aneek
Copy link
Author

aneek commented Mar 25, 2024

Any update on this? if this can be fixed? In lando and also in ddev both the drush commands are failing.

vishalkhode1 added a commit that referenced this issue Mar 26, 2024
Issue #45: Site:install command fails with Drush 11.
@vishalkhode1 vishalkhode1 linked a pull request Mar 26, 2024 that will close this issue
@jacqui1811
Copy link

Just want to comment that I did a composer update, it got that merge and Drush is now working again.
Thank you for your prompt response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants