Single item import fails with validation errors from other config

Created on 26 March 2016, over 8 years ago
Updated 10 August 2024, 3 months ago

Hello,

I have a Drupal 8 development site with an error that gets me stuck with migrating content. So I am trying to export all my setting to a fresh site. I exported them via /admin/config/development/configuration/full/export

1. I did a fresh install of Drupal 8.0.5.
2. I migrated content (via UI /upgrade) from my Drupal 6 site.
3. I am trying to import my configurations (views, content types...) via /admin/config/development/configuration/single/import
4. I get the following error:

The configuration cannot be imported because it failed validation for the following reasons:

    Configuration block.block.menu depends on the Amare theme that will not be installed after import.
    Configuration block.block.menu_1 depends on the garland theme that will not be installed after import.
    Configuration block.block.statistics depends on the garland theme that will not be installed after import.
    Configuration block.block.user depends on the bluemarine theme that will not be installed after import.
    Configuration block.block.user_1 depends on the bluemarine theme that will not be installed after import.
    Configuration block.block.user_2 depends on the garland theme that will not be installed after import.
    Configuration block.block.user_3 depends on the garland theme that will not be installed after import.
    Configuration block.block.user_4 depends on the garland theme that will not be installed after import.

I am not importing any of these items (blocks). There are blocks in my config files that use these themes, but I am not importing them as I am using Single Item Import. There are no dependencies on these blocks in the config files I am trying to import. I also uncommented $config_directories['sync'] from my settings.php

e.g. Configuration type: Content type

uuid: 929c4a4b-eb8f-4396-9739-57c185d3bd39
langcode: de
status: true
dependencies:
  module:
    - menu_ui
third_party_settings:
  menu_ui:
    available_menus:
      - main
    parent: 'main:'
name: 'Time-sensitive content'
type: time_sensitive_content
description: ''
help: ''
new_revision: false
preview_mode: 1
display_submitted: false
Some solutions:
Leftover config objects (for example an uninstalled theme's leftover blocks, which jam the sync system) can be deleted a few ways. More options here and here . Drupal console or drush:
drupal config:delete 'the_config_to_delete'
drush config-delete [config_name]
πŸ’¬ Support request
Status

Active

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

Live updates comments and jobs are added and updated live.
  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

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.

  • πŸ‡©πŸ‡ͺGermany marc.bau

    The migration from Drupal 7 to 10 is just a really bad mess. Nothing works.

    Configuration block.block.bartik_search_form depends on the bartik theme that will not be installed after import.
    Configuration block.block.bartik_statistics_popular depends on the bartik theme that will not be installed after import.
    Configuration block.block.bartik_system_main depends on the bartik theme that will not be installed after import.
    Configuration block.block.bluemarine_user_login depends on the bluemarine theme that will not be installed after import.
    Configuration block.block.garland_system_main depends on the garland theme that will not be installed after import.
    Configuration block.block.pushbutton_user_login depends on the pushbutton theme that will not be installed after import.
    

    I'm importing a single "view" configuration that depends on nothing, but this config import is blocked because of a lingering and totally unrelated theme setting? Unbelivable. Why is there no link on the page - "how to solve this" or a "skip" button to proceed and do not care about a theme that no longer exist?

Production build 0.71.5 2024