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

Class "Consolidation\Log\ConsoleLogLevel" not found #5248

Closed
mondrake opened this issue Sep 21, 2022 · 2 comments
Closed

Class "Consolidation\Log\ConsoleLogLevel" not found #5248

mondrake opened this issue Sep 21, 2022 · 2 comments

Comments

@mondrake
Copy link
Contributor

Describe the bug

Getting this today when running Drush 11 over Drupal 10, after a composer update:

  The command "/var/www/d10/vendor/bin/drush updatedb:status --strict=0 --uri=default --root=/var/www/d10" failed.                                     
                                                                                                                                                       
  Exit Code: 1(General error)                                                                                                                          
                                                                                                                                                       
  Working directory:                                                                                                                                   
                                                                                                                                                       
  Output:                                                                                                                                              
  ================                                                                                                                                     
  Error: Class "Consolidation\Log\ConsoleLogLevel" not found in Drush\Log\DrushLoggerManager->success() (line 12 of /var/www/d10/vendor/drush/drush/s  
  rc/Log/DrushLoggerManager.php).                                                                                                                      
                                                                                                                                                       
                                                                                                                                                       
  Error Output:                                                                                                                                        
  ================                                                                                                                                     
   [error]  Error: Class "Consolidation\Log\ConsoleLogLevel" not found in Drush\Log\DrushLoggerManager->success() (line 12 of /var/www/d10/vendor/dru  
  sh/drush/src/Log/DrushLoggerManager.php) #0 /var/www/d10/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(109): Drush\Log\DrushLoggerManag  
  er->success()                                                                                                                                        
  #1 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedbStatus()                                                                       
  #2 /var/www/d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array()                                         
  #3 /var/www/d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCa  
  llback()                                                                                                                                             
  #4 /var/www/d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunA  
  ndAlter()                                                                                                                                            
  #5 /var/www/d10/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process()     
  #6 /var/www/d10/vendor/symfony/console/Command/Command.php(308): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()                          
  #7 /var/www/d10/vendor/symfony/console/Application.php(1020): Symfony\Component\Console\Command\Command->run()                                       
  #8 /var/www/d10/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()                                   
  #9 /var/www/d10/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()                                          
  #10 /var/www/d10/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()                                       
  #11 /var/www/d10/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()                                                      
  #12 /var/www/d10/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run()                                                                      
  #13 /var/www/d10/vendor/drush/drush/drush(4): require('...')                                                                                         
  #14 /var/www/d10/vendor/bin/drush(120): include('...')                                                                                               
  #15 {main}.                                                       

To Reproduce
drush updb

System Configuration

Q A
Drush version? 11.1
Drupal version? 10.x
PHP version 8.1
OS? Linux
@AndrewMac
Copy link

Yep, me too, exactly the same. It came after an "updb" command following a composer update to Drupal 10.0 beta 1.

@weitzman
Copy link
Member

Dupe of #5213. I plan to make a new release today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants