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

jezrsh created an issue. See original summary.

jezrsh’s picture

Issue summary: View changes
jezrsh’s picture

Issue summary: View changes
fionamorrison23’s picture

Assigned: Unassigned » joshua1234511
Issue tags: +civictheme-release-1.10
joshua1234511’s picture

StatusFileSize
new3.07 KB

Root 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

joshua1234511’s picture

Assigned: joshua1234511 » richardgaunt
Status: Active » Needs review
richardgaunt’s picture

The 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

  • 8a9bc5ff committed on 1.x
    Issue #3505673 by joshua1234511, richardgaunt, jezrsh, fionamorrison23:...
fionamorrison23’s picture

Assigned: richardgaunt » Unassigned
Status: Needs review » Reviewed & tested by the community
fionamorrison23’s picture

fionamorrison23’s picture

richardgaunt’s picture

Version: 1.9.0 » 1.10.0
Status: Reviewed & tested by the community » Fixed
fionamorrison23’s picture

Version: 1.10.0 » 1.9.0
fionamorrison23’s picture

Version: 1.9.0 » 1.10.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.