Configuration changes lost after module install

Created on 5 November 2020, over 4 years ago
Updated 14 April 2023, almost 2 years ago

Problem/Motivation

After we install any module, changes in configuration is getting lost and it is reverting to old state (existing in custom module)

Steps to reproduce

1. Install drupal core 8.8.10
2. Install languages and all language related modules like interface translation, etc.
3. Install metatags module.
4. Create a custom module and add metatag.metatag_defaults.node__article.yml in config/install -

langcode: en
status: true
dependencies: {  }
id: node__article
label: 'Content: Article'
tags:
  title: '[node:title] | health test arabic info & tips | [site:name]'
  description: '[node:title] | health info & tips | [site:name] description'

5. Enable the custom module.
6. Now, change configuration of metatag manually from admin page - admin/config/search/metatag/node__article
7. Set interface translation to English.
\Drupal::configFactory()->getEditable('locale.settings')->set('translate_english', 1)->save();
8. Enable any module for example- devel and we find that change made in step 6 is lost and we see the old state which got added from custom module in step 4.

Looks like the issue seems to happen in locale_config_batch_refresh_name function where we call updateConfigTranslations() which checks if locale_is_translatable($langcode), then merges old config with new config changes and eventually remove the new changes.

๐Ÿ› Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Localeย  โ†’

Last updated 4 days ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia sanket1007

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia pameeela

    Closing this now for lack of relevant updates in 2+ years. If this is still occurring in a supported version of Drupal, please create a new issue with details.

Production build 0.71.5 2024