Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When switching the main site language to German, trying to install modules or import config results in an error:
InvalidArgumentException: The configuration property settings.handler_settings.target_bundles.tags.0 doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 79 of /var/www/sites/thunder/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).
I see a similar issue addressed at #2689093: Error during installation - but that one seems to be during installation. Also, it says it's been fixed, though, consequent beta4 has not fixed the issue for us.
Please advise.
Comments
Comment #2
alexrayu CreditAttribution: alexrayu commentedComment #3
chr.fritschCould you please define all steps to reproduce that. I couldnt reproduce it with beta4
Comment #4
alexrayu CreditAttribution: alexrayu commentedThe site was created with an earlier version (beta 3). The main language is set in German. When i try to install a module, or do drush cim, this error happens. When I set the main language to English, it works without errors. When Beta 4 came out, we upgraded the site, but it did not help.
Can it be that the error persists because we started with an older setup? Can you suggest what I can do to make it work on an updated site, or point to a direction where to look for the problem?
Comment #5
alexrayu CreditAttribution: alexrayu commentedComment #6
chr.fritschYes, the error persists after an update because it`s in the configuration. We are still looking for way to provide our users to update their configuration after an upgrade.
For now, have a look in field.field.media.image.field_tags.yml in your exported configuration and change that file like the commit below. After you made the changes, import your configuration again.
http://cgit.drupalcode.org/sandbox-gos77-2677752/commit/?h=8.x-1.x&id=7e...
Comment #7
alexrayu CreditAttribution: alexrayu commentedThank you very much.
Comment #8
alexrayu CreditAttribution: alexrayu commentedComment #9
yoruvo CreditAttribution: yoruvo commentedI would not yet close this issue, as clearly a proper upgrade path needs to be provided for those who upgrade from previous versions.
Comment #10
chr.fritschWriting update hooks for every config change is not possible. Providing a better way to update default configuration is a goal for core or contrib, not for thunder. This is related to #1398040: Detect if default configuration of a module has been changed, and allow to restore to the original. Maybe we can support the config_update module.