Issue Bug Needs Feedback Orphaned

#107997Saving changes in Site Configuration breaks config

Stig Nørgaard Færch 11/06/25, 14:45 updated 04/15/26, 08:25

Description

For example, when changing the domain when going live with a new site in our multi site installation, the config.yaml gets corrupted. Therefore we always edit the config.yaml file directly, and automatic cache clearing does not happen.
Example: Change from https://temporary-domain.dk to https://live-domain.dk

config.yaml before saving:

base: 'https://temporary-domain.dk'
baseVariants:
  -
    base: '%env(DKM_INSTANCE_HOST)%/3skursus/'
    condition: 'applicationContext != "Production/Live"'
rootPageId: 1061
pids:
  news:
    storage: '1062'
    detail: '1063'
  events:
    storage: '1064'
    detail: '1065'
  intranet:
    storage: '1082'
    root: '1081'
  mail:
    storage: '3909'
websiteTitle: '3S Kursus'
imports:
  -
    resource: 'EXT:mspconfig/Configuration/Site/Default.yaml'

config.yaml after saving:

DKMYouTube:
  channels:
    - __UNSET
base: 'https://live-domain.dk'
baseVariants:
  -
    base: 'https://71061.dkmweb4v12.ddev.site'
    condition: 'applicationContext != "Production/Live"'
  -
    base: dkmweb4v12.ddev.site/3skursus/
dynamic_be_groups:
  config_name:
    conditions:
      -
        value: '73909'
env_config_key: 2019old
env_instanceHost: dkmweb4v12.ddev.site
env_typo3_context: Development
env_typo3_path_app: /var/www/html
errorHandling:
  -
    errorCode: 404
    errorContentSource: 't3://page?uid=71061'
  -
    errorCode: 403
    errorContentSource: 't3://page?uid=71061'
languages:
  -
    languageId: 0
    solr_core_read: dkmweb4_dk
matomoWidgetsActiveWidgets: ''
matomoWidgetsIdSite: ''
matomoWidgetsPagesNotFoundTemplate: '404/URL = {path}/From = {referrer}'
matomoWidgetsTitle: ''
matomoWidgetsTokenAuth: ''
matomoWidgetsUrl: ''
pids:
  news:
    storage: '1062'
    detail: '1063'
  events:
    storage: '1064'
    detail: '1065'
  intranet:
    storage: '1082'
    root: '1081'
  mail:
    storage: '3909'
rootPageId: 1061
routeEnhancers:
  Login:
    limitToPages:
      - 1061
  Cookie:
    limitToPages:
      - 1061
  EventNewsPlugin:
    limitToPages:
      - '1065'
  NewsPlugin:
    limitToPages:
      - '1063'
solr_path_read: null
websiteTitle: '3S Kursus 2'
imports:
  -
    resource: 'EXT:mspconfig/Configuration/Site/Default.yaml'

wanted config.yaml:

base: 'https://live-domain.dk'
baseVariants:
  -
    base: '%env(DKM_INSTANCE_HOST)%/3skursus/'
    condition: 'applicationContext != "Production/Live"'
rootPageId: 1061
pids:
  news:
    storage: '1062'
    detail: '1063'
  events:
    storage: '1064'
    detail: '1065'
  intranet:
    storage: '1082'
    root: '1081'
  mail:
    storage: '3909'
websiteTitle: '3S Kursus'
imports:
  -
    resource: 'EXT:mspconfig/Configuration/Site/Default.yaml'

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Saving changes in Site Configuration breaks config Resolves: #107997 Releases: main