- Issue created by @emofsnead
- πΊπΈUnited States Greg Boggs Portland Oregon
You should try the dev release and let me know if that works.
New Drupal 11.2.2 site running under DDEV crashes when I install the module; recovers when I remove the module
Using a nearly clean install of the Drupal 11 template from Platform.sh with an update via composer to 11.2.2 and running a composer.json which the initial portion looks as follows:
{
"name": "platformsh/drupal11",
"description": "This template builds Drupal 11 for Platform.sh based the \"Drupal Recommended\" Composer project.",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
"chat": "https://www.drupal.org/node/314178"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "path",
"url": "recipes/*",
"options": {
"symlink": true
}
}
],
"require": {
"composer/installers": "^2.0",
"drupal/config_split": "^2.0",
"drupal/config_suite": "^2.0",
"drupal/core-composer-scaffold": "^11.0",
"drupal/core-project-message": "^11.0",
"drupal/core-recommended": "^11.2",
"drupal/environment_indicator": "^4.0",
"drupal/stage_file_proxy": "^3.1",
"drupal/structure_sync": "^2.0",
"drush/drush": "^13.6",
"myvendor/split-environments": "dev-develop",
"platformsh/config-reader": "^2.4"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true
Config_Suite was installed and then enabled by a recipe. Before the recipe ran the site worked as expected. After the recipe ran the report below appeared when trying to use the site URL. This is run under DDEV locally. A composer remove of the module restored the site; after a drush cr
. Reinstalling the module with composer again resulted in this same error at the URL. Removing it again with composer restored the site.
The website encountered an unexpected error. Try again later.
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /var/www/html/web/modules/contrib/config_suite/src/ConfigSuiteImportSubscriber.php on line 51 and exactly 11 expected in Drupal\Core\Config\ConfigImporter->__construct() (line 206 of core/lib/Drupal/Core/Config/ConfigImporter.php).
Drupal\config_suite\ConfigSuiteImportSubscriber->checkForRedirection() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)
The underlying site has a config directory off the project root. Under that it has subdirectories for 'sync', 'local', 'develop', 'staged' and 'main' which each contain a config_suite.settings.yml
file setting the automatic import and export to false initially which look like this:
_core:
default_config_hash:
automatic_import: false
automatic_export: false
dependencies:
module:
- config_suite
enforced:
module:
- config_suite
The error report line /var/www/html/web/modules/contrib/config_suite/src/ConfigSuiteImportSubscriber.php
appears to suggest that the local machine code is making it into the DDEV managed container.
Active
2.0
Code
You should try the dev release and let me know if that works.