-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drush 12 throws an error with Drupal 10 (Docker based setup) #6088
Comments
Please paste in output of |
Below is the outpot for "composer show" asm89/stack-cors v2.2.0 Cross-origin resource sharing library and stack middleware |
Can you paste output of |
Composer version 2.6.4. |
This comment was marked as off-topic.
This comment was marked as off-topic.
is it fixed if you run |
Describe the bug
while running drush cr /drush status
PHP Fatal error: Uncaught Error: Call to undefined method Composer\InstalledVersions::getInstallPath() in /var/www/html/vendor/drush/drush/src/DrupalFinder/DrushDrupalFinder.php:26
Stack trace:
#0 /var/www/html/vendor/drush/drush/src/Preflight/Preflight.php(354): Drush\DrupalFinder\DrushDrupalFinder->getDrupalRoot()
#1 /var/www/html/vendor/drush/drush/src/Preflight/Preflight.php(274): Drush\Preflight\Preflight->preferredSite()
#2 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(58): Drush\Preflight\Preflight->preflight()
#3 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#4 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#5 /var/www/html/vendor/drush/drush/drush(4): require('...')
#6 {main}
thrown in /var/www/html/vendor/drush/drush/src/DrupalFinder/DrushDrupalFinder.php on line 26
Fatal error: Uncaught Error: Call to undefined method Composer\InstalledVersions::getInstallPath() in /var/www/html/vendor/drush/drush/src/DrupalFinder/DrushDrupalFinder.php:26
Stack trace:
#0 /var/www/html/vendor/drush/drush/src/Preflight/Preflight.php(354): Drush\DrupalFinder\DrushDrupalFinder->getDrupalRoot()
#1 /var/www/html/vendor/drush/drush/src/Preflight/Preflight.php(274): Drush\Preflight\Preflight->preferredSite()
#2 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(58): Drush\Preflight\Preflight->preflight()
#3 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#4 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#5 /var/www/html/vendor/drush/drush/drush(4): require('...')
#6 {main}
thrown in /var/www/html/vendor/drush/drush/src/DrupalFinder/DrushDrupalFinder.php on line 26
To Reproduce
Run dursh cr command in drupal container
Expected behavior
Shoudl clear the cache
Actual behavior
Fatal error
Workaround
Is there another way to do the desired action?
System Configuration
Additional information
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: