Error running config import "Call to a member function delete() on null in Drupal\Core\Config\ConfigImporter->checkOp()"

Created on 16 February 2021, almost 4 years ago
Updated 3 August 2023, over 1 year ago
🐛 Bug report
Status

Needs work

Version

9.5

Component
Configuration 

Last updated 3 days ago

Created by

🇺🇦Ukraine niko-

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • 🇮🇪Ireland b0gucki3 Limerick

    I can confirm that #8 works for me on 9.5.2.

  • 🇺🇸United States srdtwc Skokie, IL

    Confirmed #8 is still working on 9.5.3 as well

  • Status changed to Needs work over 1 year ago
  • Let’s treat this as a bug and someone please post a failing test.

  • 🇺🇸United States charginghawk

    If anybody's looking for a fix that doesn't involve patching core, I had success with this:

    I had a lot of items that were failing import, so I created a directory to run a partial import from (partial-080323), and copied one of the config files there. It was a very normal config item, xmlsitemap.settings.yml, that probably wasn't breaking anything. I ran drush config:import --partial --source=../partial-080323/ and got a long string of "Missing required data for configuration:" notices, with this strange kicker:

    The import failed due to the following reasons:
    Deleted and replaced configuration "xmlsitemap.settings"

    For whatever reason, after that, there weren't any config differences anymore and config import worked fine.

Production build 0.71.5 2024