ArgumentCountError: Too few arguments to function Drupal\update\UpdateFetcher::__construct()

Created on 26 January 2023, almost 2 years ago
Updated 13 February 2023, almost 2 years ago

ArgumentCountError: Too few arguments to function Drupal\update\UpdateFetcher::__construct(), 2 passed in /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 3 expected en Drupal\update\UpdateFetcher->__construct() (lΓ­nea 61 de /opt/drupal/web/core/modules/update/src/UpdateFetcher.php)
#0 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\update\UpdateFetcher->__construct(Object(Drupal\Core\Config\ConfigFactory), Object(GuzzleHttp\Client))
#1 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'update.fetcher....')
#2 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('update.fetcher....', 1)
#3 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(237): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'update.processo...')
#5 /opt/drupal/web/modules/contrib/drd/src/Plugin/Action/Base.php(153): Drupal\Component\DependencyInjection\Container->get('update.processo...')
#6 /opt/drupal/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\drd\Plugin\Action\Base::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'drd_action_bloc...', Array)
#7 /opt/drupal/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('drd_action_bloc...', Array)
#8 /opt/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance('drd_action_bloc...', Array)
#9 /opt/drupal/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('drd_action_bloc...')
#10 /opt/drupal/web/core/lib/Drupal/Core/Action/ActionPluginCollection.php(18): Drupal\Component\Plugin\LazyPluginCollection->get('drd_action_bloc...')
#11 /opt/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\Core\Action\ActionPluginCollection->get('drd_action_bloc...')
#12 /opt/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array)
#13 /opt/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('drd_action_bloc...', Array)
#14 /opt/drupal/web/core/modules/system/src/Entity/Action.php(91): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object(Drupal\Core\Action\ActionManager), 'drd_action_bloc...', Array)
#15 /opt/drupal/web/core/modules/system/src/Entity/Action.php(100): Drupal\system\Entity\Action->getPluginCollection()
#16 /opt/drupal/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(293): Drupal\system\Entity\Action->getPluginCollections()
#17 /opt/drupal/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(528): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
#18 /opt/drupal/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\system\Entity\Action))
#19 /opt/drupal/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\system\Entity\Action))
#20 /opt/drupal/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\system\Entity\Action))
#21 /opt/drupal/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(608): Drupal\Core\Entity\EntityBase->save()
#22 /opt/drupal/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(388): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#23 /opt/drupal/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(259): Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array)
#24 /opt/drupal/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(163): Drupal\Core\Config\ConfigInstaller->installOptionalConfig(Object(Drupal\Core\Config\FileStorage), '')
#25 /opt/drupal/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'drd')
#26 /opt/drupal/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(319): Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('module', 'drd')
#27 /opt/drupal/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#28 /opt/drupal/vendor/drush/drush/src/Drupal/Commands/pm/PmCommands.php(94): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#29 [internal function]: Drush\Drupal\Commands\pm\PmCommands->install(Array, Array)
#30 /opt/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#31 /opt/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#32 /opt/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#33 /opt/drupal/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(386): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#34 /opt/drupal/vendor/symfony/console/Command/Command.php(312): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /opt/drupal/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /opt/drupal/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /opt/drupal/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 /opt/drupal/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))
#39 /opt/drupal/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 /opt/drupal/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#41 /opt/drupal/vendor/drush/drush/drush(4): require('/opt/drupal/ven...')
#42 /opt/drupal/vendor/bin/drush(120): include('/opt/drupal/ven...')
#43 {main}

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain Joseminosa

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

Comments & Activities

Production build 0.71.5 2024