Problem/Motivation
Since Drupal CMS 2.2.0 (with the new recipe_locale module) and Canvas 1.12.0, installing Horizon Aid fails in the recipe batch with:
TypeError: ComponentInputs::resolveConfigSchemaMapping(): Argument #3 ($actual_inputs) must be of type array, string givenrecipe_locale reads every shipped config through its schema, and the header and footer page regions store each component's inputs as a JSON string instead of a mapping. Released 1.0.4 and 1.0.x-dev are both affected.
Steps to reproduce
ddev composer create-project drupal/cms, then requiredrupal/horizonaid.ddev drush site:install drupal_cms_installer installer_site_template_form.add_ons=horizonaid -y- The install stops with the TypeError above.
Proposed resolution
Store the 23 inputs values in config/canvas.page_region.vartheme_bs5_horizonaid.header.yml and config/canvas.page_region.vartheme_bs5_horizonaid.footer.yml as YAML mappings, like the content templates already do. Same data, no other change.
Verified: the install completes on stock Drupal CMS 2.2.0.
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ✅ Update Release Notes
- ✅ Release
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Fix installing on Drupal CMS 2.2 by storing the header and footer Canvas inputs as mappings.
AI-Generated: Yes
Issue fork horizonaid-3626228
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
Comment #4
rajab natshah✅ Released horizonaid-1.0.5