Drush Error (#drush status) :
drush status
[error] TypeError: Drush\Drupal\Commands\config\ConfigImportCommands::__construct(): Argument #3 ($configCache) must be of type Drupal\Core\Cache\CacheBackendInterface, Drupal\Core\Config\FileStorage given, called in /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drush\Drupal\Commands\config\ConfigImportCommands->__construct() (line 172 of /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php) #0 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drush\Drupal\Commands\config\ConfigImportCommands->__construct(Object(Drupal\Core\Config\ConfigManager), Object(Drupal\Core\Config\CachedStorage), Object(Drupal\Core\Config\FileStorage), Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Object(Drupal\Core\Config\TypedConfigManager), Object(Drupal\Core\ProxyClass\Extension\ModuleInstaller), Object(Drupal\Core\Extension\ThemeHandler), Object(Drupal\Core\StringTranslation\TranslationManager), Object(Drupal\Core\Extension\ModuleExtensionList))
#1 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'config.import.c...')
#2 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('config.import.c...', 1)
#3 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'drush.command.s...')
#5 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(288): Drupal\Component\DependencyInjection\Container->get('drush.command.s...')
#6 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(251): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands(Object(Drush\Boot\BootstrapManager))
#7 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), NULL)
#8 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap(5, 6, NULL)
#9 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(412): Drush\Boot\BootstrapManager->bootstrapMax(6)
#10 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(384): Drush\Boot\BootstrapManager->bootstrapToPhaseIndex(-2, Object(Consolidation\AnnotatedCommand\AnnotationData))
#11 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapHook.php(32): Drush\Boot\BootstrapManager->bootstrapToPhase('max', Object(Consolidation\AnnotatedCommand\AnnotationData))
#12 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Boot\BootstrapHook->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#13 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#14 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#15 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#16 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(375): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook(Object(Symfony\Component\Console\Input\ArgvInput), Array, Object(Consolidation\AnnotatedCommand\AnnotationData))
#17 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Command/Command.php(221): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#24 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush(4): require('/var/www/vhosts...')
#25 {main}.
TypeError: Drush\Drupal\Commands\config\ConfigImportCommands::__construct(): Argument #3 ($configCache) must be of type Drupal\Core\Cache\CacheBackendInterface, Drupal\Core\Config\FileStorage given, called in /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php on line 172 #0 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drush\Drupal\Commands\config\ConfigImportCommands->__construct(Object(Drupal\Core\Config\ConfigManager), Object(Drupal\Core\Config\CachedStorage), Object(Drupal\Core\Config\FileStorage), Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Object(Drupal\Core\Config\TypedConfigManager), Object(Drupal\Core\ProxyClass\Extension\ModuleInstaller), Object(Drupal\Core\Extension\ThemeHandler), Object(Drupal\Core\StringTranslation\TranslationManager), Object(Drupal\Core\Extension\ModuleExtensionList))
#1 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'config.import.c...')
#2 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('config.import.c...', 1)
#3 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'drush.command.s...')
#5 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(288): Drupal\Component\DependencyInjection\Container->get('drush.command.s...')
#6 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(251): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands(Object(Drush\Boot\BootstrapManager))
#7 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), NULL)
#8 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap(5, 6, NULL)
#9 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(412): Drush\Boot\BootstrapManager->bootstrapMax(6)
#10 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(384): Drush\Boot\BootstrapManager->bootstrapToPhaseIndex(-2, Object(Consolidation\AnnotatedCommand\AnnotationData))
#11 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Boot/BootstrapHook.php(32): Drush\Boot\BootstrapManager->bootstrapToPhase('max', Object(Consolidation\AnnotatedCommand\AnnotationData))
#12 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Boot\BootstrapHook->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#13 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#14 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#15 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#16 /var/www/vhosts/example.com/httpdocs/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(375): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook(Object(Symfony\Component\Console\Input\ArgvInput), Array, Object(Consolidation\AnnotatedCommand\AnnotationData))
#17 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Command/Command.php(221): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/vhosts/example.com/httpdocs/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#24 /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush(4): require('/var/www/vhosts...')
#25 {main}
TypeError: Drush\Drupal\Commands\config\ConfigImportCommands::__construct(): Argument #3 ($configCache) must be of type Drupal\Core\Cache\CacheBackendInterface, Drupal\Core\Config\FileStorage given, called in /var/www/vhosts/example.com/httpdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drush\Drupal\Commands\config\ConfigImportCommands->__construct() (line 172 of /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php).
[warning] Drush command terminated abnormally.
Solution :
# drush cr
Neuen Kommentar schreiben