Configuration changes does not get imported

Created on 21 December 2019, about 5 years ago
Updated 18 May 2023, almost 2 years ago

I want to import changes from filter.format.basic_html.yml file.

$ drush config-import
Collection Config Operation
filter.format.basic_html update
Import the listed configuration changes? (y/n): y
The configuration was imported successfully. [success]

$ drush config-import
Collection Config Operation
filter.format.basic_html update
Import the listed configuration changes? (y/n):

This is changes:

So configurations differ only in filters-section items order.
Values from databases SELECT * FROM config where name = 'filter.format.basic_html' also differ only in this thing.

Drupal thinks those 2 configs are the same (and in fact he is right).
But what should I do? :(

Update: recreating not solve the issue:

$ drush cdel filter.format.basic_html

$ drush config-import
Collection Config Operation
filter.format.basic_html create
Import the listed configuration changes? (y/n): y
The configuration was imported successfully. [success]

$ drush config-import
Collection Config Operation
filter.format.basic_html update
Import the listed configuration changes? (y/n):

πŸ› Bug report
Status

Fixed

Version

10.0 ✨

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡·πŸ‡ΈSerbia super_romeo Belgrade

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.

  • πŸ‡ΊπŸ‡ΈUnited States srdtwc Skokie, IL

    This issue should be reopened. I encountered this bug today and it was not immediately obvious that the config was identical, but just in a different order. This screenshot of the web interface should show that.

  • πŸ‡¨πŸ‡¦Canada _randy

    Agreed with everyone on this thread asking to reopen. This is not resolved.

    I currently have 106 config YML files that successfully import, yet they do not disappear from the sync page once imported. The differences between the current and staged configs are ordering of the config parameters within the staged file compared to that of the in-system configs.

  • I've been having the same problem with D10.3. Each time I transfer my config from dev to test environment and import the config, it always shows most of the view definitions need to be re-imported. It then claims to have imported them successfully, but if I immediately run drush cim again, it once again says the view definitions all need to be reimported.

    I finally solved this problem using ccshannon's approach in #4 above. I opened up the edit page for each of the views on my dev environment, and re-saved. When I then did a config export, I got new config files. (Mostly the differences were that lines were in different places.) Then I imported these on the test environment, and finally everything was resolved.

    The only exception was for block.block.claro_help_search.yml. For some reason, the config file generated on my dev machine had no uuid. I did a config export on my test machine. The I copied the uuid from the file on the test machine over the file on the dev machine, and imported. The block was deleted and recreated. This gave the error message "[warning] Undefined array key "uuid" StorageComparer.php:302", but apart from that, everything is now fine.

    But it shouldn't have to be so hard.

Production build 0.71.5 2024