Error: Too few arguments: ConfigInspectorManager::__construct()

Created on 26 May 2023, about 1 year ago
Updated 6 June 2023, about 1 year ago

Problem/Motivation

I just tried enabling the "media" module, when I got the following error:

 [error]  ArgumentCountError: Too few arguments to function Drupal\config_inspector\ConfigInspectorManager::__construct(), 2 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 3 expected in Drupal\config_inspector\ConfigInspectorManager->__construct() (line 53 of /var/www/html/web/modules/contrib/config_inspector/src/ConfigInspectorManager.php) #0 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\config_inspector\ConfigInspectorManager->__construct(Object(Drupal\webprofiler\Config\ConfigFactoryWrapper), Object(Drupal\Core\Config\TypedConfigManager))
#1 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'config_inspecto...')
#2 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('config_inspecto...', 1)
#3 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(237): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'config_inspecto...')
#5 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('config_inspecto...', 3)
#6 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#7 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'drush.command.s...')
#8 /var/www/html/vendor/drush/drush/src/Boot/DrupalBoot8.php(288): Drupal\Component\DependencyInjection\Container->get('drush.command.s...')
#9 /var/www/html/vendor/drush/drush/src/Boot/DrupalBoot8.php(251): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands(Object(Drush\Boot\BootstrapManager))
#10 /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), NULL)
#11 /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap(5, 6, NULL)
#12 /var/www/html/vendor/drush/drush/src/Application.php(223): Drush\Boot\BootstrapManager->bootstrapMax()
#13 /var/www/html/vendor/drush/drush/src/Application.php(189): Drush\Application->bootstrapAndFind('pmu')
#14 /var/www/html/vendor/symfony/console/Application.php(256): Drush\Application->find('pmu')
#15 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/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))
#17 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#19 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#20 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#21 {main}.

Using Drupal 10.1 and PHP 8.1

Using Config Inspector 2.1.1, Drupal

Steps to reproduce

Install the media module

Proposed resolution

Fix the issue

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.69.0 2024