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 given

recipe_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

  1. ddev composer create-project drupal/cms, then require drupal/horizonaid.
  2. ddev drush site:install drupal_cms_installer installer_site_template_form.add_ons=horizonaid -y
  3. 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

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

rajab natshah created an issue. See original summary.

  • rajab natshah committed 82a1e034 on 1.0.x
    fix: #3626228 Store the header and footer Canvas inputs as mappings so...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +horizonaid-1.0.5

✅ Released horizonaid-1.0.5

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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