Problem
Running Content Provisioning results in the below error (screenshot attached):
The website encountered an unexpected error. Try again later.
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /code/web/core/themes/civictheme/src/CivicthemeConfigImporter.php on line 150 and exactly 11 expected in Drupal\Core\Config\ConfigImporter->__construct() (line 204 of core/lib/Drupal/Core/Config/ConfigImporter.php).
This is a test site set up on Pantheon with: CivicTheme 1.9.0, Drupal 11.1.2, PHP 8.3.16.
From a quick non-coder's comparison of the two .php files, looks like themeExtensionList maybe missing 11th argument in CivicthemeConfigImporter.php?
Comments
Comment #2
jezrsh commentedComment #3
jezrsh commentedComment #4
fionamorrison23 commentedComment #5
joshua1234511Root Cause:
Drupal 11 requires ThemeExtensionList in the constructor.
Fix:
Added the required ThemeExtensionList to resolve the issue.
Attached a patch and raised a PR with concerns.
https://github.com/civictheme/monorepo-drupal/pull/1332
Comment #6
joshua1234511Comment #7
richardgaunt commentedThe fix has been merged.
There is another outstanding issue with 11 we are working on and will have a fix shortly.
Thank you for reporting the issue and investigating
Comment #9
fionamorrison23 commentedComment #10
fionamorrison23 commentedComment #12
fionamorrison23 commentedComment #13
richardgaunt commentedComment #14
fionamorrison23 commentedComment #15
fionamorrison23 commented