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.
CommentFileSizeAuthor
#3 cohesion-10.3.0.patch2.73 KBvishalkhode
Command icon 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:

Comments

vishalkhode created an issue. See original summary.

vishalkhode changed the visibility of the branch 3457188-module-installation-failure to hidden.

vishalkhode’s picture

StatusFileSize
new2.73 KB

The 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