I have an Acquia Lightning site I updated today to apply the Drupal security patches, and afterwards, whenever I ran Drush (version 9), I would get the following error on every command EXCEPT cache-rebuild (cr):
"PHP Fatal error: Trait 'Consolidation\SiteAlias\SiteAliasManagerAwareTrait' not found in [mysite]/docroot/modules/contrib/purge/modules/purge_drush/src/Commands/QueueCommands.php on line 35
Fatal error: Trait 'Consolidation\SiteAlias\SiteAliasManagerAwareTrait' not found in [mysite]/docroot/modules/contrib/purge/modules/purge_drush/src/Commands/QueueCommands.php on line 35
[error] Drush command terminated abnormally due to an unrecoverable error.
Error: Trait 'Consolidation\SiteAlias\SiteAliasManagerAwareTrait' not found in [mysite]/docroot/modules/contrib/purge/modules/purge_drush/src/Commands/QueueCommands.php, line 35 "
One simple "drush" generates that error 3 times. The site is hosted on Acquia Cloud and I am using their Dev Desktop tool to manage my local development environment. I get this error in the remote dev and staging environments as well as my local.
I did use the 'Refresh Drush Aliases" option within Dev Desktop, but it had no apparent effect. Not sure what to do here - I'm pretty dead in the water here with nothing but "cr" at my disposal (though I'm glad I have that).
Comments
Comment #2
alex72rm commentedAny news about this issue? It's a blocking one because I cannot update to this module version after Drupal upgrading.
Comment #3
nsciaccaI think what's happening here is that Purge is triggering drush commands for Acquia Purge, which assumes you have their BLT installed. The requirement for consolidation/site-alias is part of BLT but isn't included with drush/drush or drupal/purge. To resolve, install one of the following:
composer require acquia/bltcomposer require consolidation/site-aliasComment #4
lanetterm commentedThis may be used by BLT but I dont believe that why this issue is happening.
And Acquia Purge does not require BLT.
Im not sure where the problem is or what is the answer but this looks like 'consolidation/site-alias' is part of Drush
https://github.com/consolidation/site-alias
Comment #5
japerry