Problem/Motivation
When installing Acquia CMS Site Studio module on Drupal Core 10.3.0, the module installation fails giving the following error:
[error] ArgumentCountError: Too few arguments to function Drupal\Core\EventSubscriber\ConfigImportSubscriber::__construct(), 0 passed in /site1/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 2 expected in Drupal\Core\EventSubscriber\ConfigImportSubscriber->__construct() (line 57 of /site1/docroot/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php)
#0 /site1/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\Core\EventSubscriber\ConfigImportSubscriber->__construct()
Steps to reproduce
- Download and install Drupal Core 10.3.0.
- Export Site Studio API Key & Organisation Key on terminal.
- Install Acquia CMS Site Studio module and you'll se above error.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | cohesion-10.3.0.patch | 2.73 KB | vishalkhode |
Issue fork acquia_cms_site_studio-3457188
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3457188-module-installation-failure
compare
Comments
Comment #3
vishalkhode commentedThe issue is with Site Studio module. Until Site Studio team fixes the issue, we can use the following patch: https://www.drupal.org/files/issues/2024-06-26/cohesion-10.3.0.patch