TypeError: Drupal\domain_language\DomainLanguageOverrider::__construct(): Argument #1 ($current_user) must be of type

Created on 5 October 2024, 3 months ago

I get the below error after after upgrading from 2.00-alpha1 to 2.00-alpha2
------------------------------------------------------------------------------------------------------------------
TypeError: Drupal\domain_language\DomainLanguageOverrider::__construct(): Argument #1 ($current_user) must be of type Drupal\Core\Session\AccountProxyInterface, Drupal\Core\Config\CachedStorage given in Drupal\domain_language\DomainLanguageOverrider->__construct() (line 81 of /home/htdocs/modules/domain_language/src/DomainLanguageOverrider.php)
#0 [internal function]: Drupal\domain_language\DomainLanguageOverrider->__construct()
#1 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1140): ReflectionClass->newInstanceArgs()
#2 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#3 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1258): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#4 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1210): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#5 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1673): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#6 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1166): Symfony\Component\DependencyInjection\ContainerBuilder->callMethod()
#7 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#8 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1258): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#9 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1210): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#10 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1110): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#11 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#12 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1258): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#13 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1210): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#14 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1673): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#15 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1166): Symfony\Component\DependencyInjection\ContainerBuilder->callMethod()
#16 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#17 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1258): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#18 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1210): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#19 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1110): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#20 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#21 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1258): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#22 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1210): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#23 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(1110): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
#24 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#25 /home/htdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(531): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#26 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(288): Symfony\Component\DependencyInjection\ContainerBuilder->get()
#27 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(253): Drush\Runtime\LegacyServiceInstantiator->resolveFromContainer()
#28 [internal function]: Drush\Runtime\LegacyServiceInstantiator->resolveArgument()
#29 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(223): array_map()
#30 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(193): Drush\Runtime\LegacyServiceInstantiator->resolveArguments()
#31 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(174): Drush\Runtime\LegacyServiceInstantiator->instantiateObject()
#32 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(128): Drush\Runtime\LegacyServiceInstantiator->create()
#33 /home/htdocs/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(60): Drush\Runtime\LegacyServiceInstantiator->instantiateServices()
#34 /home/htdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(239): Drush\Runtime\LegacyServiceInstantiator->loadServiceFiles()
#35 /home/htdocs/vendor/drush/drush/src/Boot/DrupalBoot8.php(215): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#36 /home/htdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(236): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#37 /home/htdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(377): Drush\Boot\BootstrapManager->doBootstrap()
#38 /home/htdocs/vendor/drush/drush/src/Boot/BootstrapManager.php(329): Drush\Boot\BootstrapManager->bootstrapToPhaseIndex()
#39 /home/htdocs/vendor/drush/drush/src/Boot/BootstrapHook.php(36): Drush\Boot\BootstrapManager->bootstrapToPhase()
#40 /home/htdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Boot\BootstrapHook->initialize()
#41 /home/htdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook()
#42 /home/htdocs/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook()
#43 /home/htdocs/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize()
#44 /home/htdocs/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(376): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook()
#45 /home/htdocs/vendor/symfony/console/Command/Command.php(292): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize()
#46 /home/htdocs/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#47 /home/htdocs/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#48 /home/htdocs/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#49 /home/htdocs/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#50 /home/htdocs/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#51 /home/htdocs/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#52 /home/htdocs/vendor/drush/drush/drush(4): require('...')
#53 /home/htdocs/vendor/bin/drush(119): include('...')
#54 {main}

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States RobertoGuzman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024