I get this error for every module i install on my server. However, i do not get any errors on my local machine, which has a different installation of the same distribution.
This is the log:
ArgumentCountError: Too few arguments to function Drupal\config_provider\Plugin\ConfigCollector::__construct(), 5 passed in /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 278 and exactly 6 expected in Drupal\config_provider\Plugin\ConfigCollector->__construct() (Zeile 80 in /var/www/project/docroot/modules/contrib/config_provider/src/Plugin/ConfigCollector.php) #0 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(278): Drupal\config_provider\Plugin\ConfigCollector->__construct(Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Config\CachedStorage), Object(Drupal\Core\Config\ConfigManager), Object(Drupal\config_provider\InMemoryStorage), Object(Drupal\config_provider\Plugin\ConfigProviderManager)) #1 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'config_sync.col...') #2 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(480): Drupal\Component\DependencyInjection\Container->get('config_sync.col...', 1) #3 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(230): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) #4 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'config_sync.lis...') #5 /var/www/project/docroot/modules/contrib/config_sync/src/Plugin/ConfigFilter/SyncFilterDeriver.php(74): Drupal\Component\DependencyInjection\Container->get('config_sync.lis...') #6 /var/www/project/docroot/core/lib/Drupal/Core/Plugin/Discovery/ContainerDerivativeDiscoveryDecorator.php(25): Drupal\config_sync\Plugin\ConfigFilter\SyncFilterDeriver::create(Object(Drupal\Core\DependencyInjection\Container), 'config_sync') #7 /var/www/project/docroot/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(99): Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator->getDeriver('config_sync', Array) #8 /var/www/project/docroot/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(87): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) #9 /var/www/project/docroot/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(284): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() #10 /var/www/project/docroot/modules/contrib/config_filter/src/Plugin/ConfigFilterPluginManager.php(70): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() #11 /var/www/project/docroot/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\config_filter\Plugin\ConfigFilterPluginManager->findDefinitions() #12 /var/www/project/docroot/modules/contrib/config_filter/src/Plugin/ConfigFilterPluginManager.php(37): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() #13 /var/www/project/docroot/modules/contrib/config_filter/src/ConfigFilterStorageFactory.php(88): Drupal\config_filter\Plugin\ConfigFilterPluginManager->getFiltersForStorages(Array, Array) #14 /var/www/project/docroot/modules/contrib/config_filter/src/ConfigFilterStorageFactory.php(54): Drupal\config_filter\ConfigFilterStorageFactory->getFilteredStorage(Object(Drupal\Core\Config\FileStorage), Array) #15 [internal function]: Drupal\config_filter\ConfigFilterStorageFactory->getSync() #16 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(248): call_user_func_array(Array, Array) #17 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'config.storage....') #18 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(480): Drupal\Component\DependencyInjection\Container->get('config.storage....', 1) #19 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(230): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) #20 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'config.export.c...') #21 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(480): Drupal\Component\DependencyInjection\Container->get('config.export.c...', 1) #22 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(319): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) #23 /var/www/project/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'drush.command.s...') #24 /var/www/project/vendor/drush/drush/src/Boot/DrupalBoot8.php(230): Drupal\Component\DependencyInjection\Container->get('drush.command.s...') #25 /var/www/project/vendor/drush/drush/src/Boot/BootstrapManager.php(295): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(NULL) #26 /var/www/project/vendor/drush/drush/src/Boot/BootstrapManager.php(504): Drush\Boot\BootstrapManager->doBootstrap(5, 6, NULL) #27 /var/www/project/vendor/drush/drush/src/Application.php(224): Drush\Boot\BootstrapManager->bootstrapMax() #28 /var/www/project/vendor/drush/drush/src/Application.php(191): Drush\Application->bootstrapAndFind('locale:update') #29 /var/www/project/vendor/symfony/console/Application.php(229): Drush\Application->find('locale:update') #30 /var/www/project/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #31 /var/www/project/vendor/drush/drush/src/Runtime/Runtime.php(112): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #32 /var/www/project/vendor/drush/drush/src/Runtime/Runtime.php(41): Drush\Runtime\Runtime->doRun(Array) #33 /var/www/project/vendor/drush/drush/drush.php(66): Drush\Runtime\Runtime->run(Array) #34 /var/www/project/vendor/drush/drush/drush(4): require('/var/www/500-fo...') #35 {main}.
I am not quite sure what additional information i could give to help handle this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2995854-4.patch | 1.49 KB | gnuget |
Comments
Comment #2
nedjoThanks for noting the issue.
The number of arguments for the relevant service changed in the latest release. This is the relevant commit.
The commit includes an update that should trigger a container rebuild so that the new service arguments are available.
After updating, did you run updates? If so, did they successfully complete? If not, does running them now resolve the issue? If running the updates doesn't help, does it help to clear caches?
Comment #3
mlncn commentedThe failure occurs for us when we run `drush -y updb`
Comment #4
gnugetI created a patch to fix this.
Patch attached.
Comment #5
nedjoThanks, this looks great. Please go ahead and apply.
Comment #7
gnugetComment #8
harkonn commentedThanks for the quick fix. Everything is working now. :)