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]