Skip to content

[command:any] [ERROR] Class Drupal\Core\DrupalKernel does not exist. after a composer global update #3533

@matoeilD

Description

@matoeilD

Issue title

[command:any] [ERROR] Class Drupal\Core\DrupalKernel does not exist. after a composer global update

###short description

After a composer global update, any drupal commands generates an error.
[ERROR] Class Drupal\Core\DrupalKernel does not exist.
PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "console.configuration_manager". in /var/aegir/.composer/vendor/symfony/dependency-injection/ContainerBuilder.php:994

Problem/Motivation

Trying to update the console from 0.11.3, i am stuck with an error on any drupal console command:

-composer update drupal/console --with-dependencies : had no effect
-composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader : had no effect
-drupal self-update ==> [ERROR] This instance of the CLI was not installed as a Phar archive. Update using: composer global update
-composer global update : generates
[ERROR] Class Drupal\Core\DrupalKernel does not exist.
PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "console.configuration_manager". in /var/aegir/.composer/vendor/symfony/dependency-injection/ContainerBuilder.php:994

How can i fix his out ?

Details to include:

  • Drupal version 8.3
  • Console version 0.11.3,

Best regards,
M.dandonneau

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions