Error using import of configuration files into the active storage

Created on 16 August 2025, about 1 month ago

Problem/Motivation

The number of arguments being passed to `ConfigImporter` needs to be updated to 11 for Drupal 11.

 [error]  ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /app/web/modules/contrib/config_devel/src/ConfigImporterExporter.php on line 199 and exactly 11 expected in Drupal\Core\Config\ConfigImporter->__construct() (line 204 of /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php) #0 /app/web/modules/contrib/config_devel/src/ConfigImporterExporter.php(199): Drupal\Core\Config\ConfigImporter->__construct()
#1 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(248): Drupal\config_devel\ConfigImporterExporter->importConfig()
#2 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(432): Drupal\config_devel\Commands\ConfigDevelCommands->importSingle()
#3 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(204): Drupal\config_devel\Commands\ConfigDevelCommands->importConfig()

See here:
https://git.drupalcode.org/project/config_devel/-/blob/8.x-1.x/src/Confi...

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...

Steps to reproduce

1. Attempt to run `drush cdi `
2. Note the error

Proposed resolution

1. Update to match the new constructor requirements.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024