4

I have two Drupal environments with the same system.site:uuid

In the main Drupal I export the configuration with command:

drush config-export deploy -y

In the destination drupal I import the configuration with command:

drush config-import deploy -y

But I have this error

Entities exist of type Shortcut link and Default. These entities need to be deleted before importing.

And:

Unable to install the mytest theme since it does not exist.

My test was a test for create subtheme, but then I delete mytest form drupal. And I don't know what it exports now, and, placeholder I don't Know what is it

I followed this article And I have the same issue of this comment

2

Sounds like you deleted your test theme without uninstalling it. You either have to properly uninstall it, which might not be possible when it's not there or edit the core.extension.yml file in your exported config and remove it by hand.

About the other error, it looks like you are either really deleting shortcut/menu link types or, more likely, you manually "fixed" the system.site UUID. That check and UUID exists for a reason, just changing it to the same value on two different installations will do a lot of unexpected things. You would have to update lots of other UUID's too, otherwise Drupal will delete and re-create pretty much every single configuration entity in your system. Due to the changed UUID, it assumes you deleted and re-created it, so that's what it is trying to do.

And since it prevents you from deleting bundle config entity types when there is still content for that type/bundle, it gives you that error.

What is it that you are trying to do exactly? Maybe you're looking for Config Installer instead?

  • thanks for your reply. I have SiteA with fresh installation. Export my configuration with drush config-export deploy -y get my uuid with drush cget system.site uuid. In my SiteB I have the clone of siteA Change uuid with drush cedit shortcut.set.default and set the same of siteA. When I do drush config-export deploy -y I have an errore of placeholder. I follow this tutorial (dcycleproject.org/blog/68/…) and change uuid by module, but I have the same result – monkeyUser Dec 20 '15 at 14:32
3

For:

Entities exist of type Shortcut link and Default. These entities need to be deleted before importing.

You need delete the entities of type short-cut, you can do with drush:

drush ev '\Drupal::entityManager()->getStorage("shortcut_set")->load("default")->delete();'
2

About the first error (Entities exist of type Shortcut link and Default. These entities need to be deleted before importing.):

I went to Home > Administration > Configuration > User interface > Shortcuts (admin/config/user-interface/shortcut), than in "List links" of "Default" I deleted every shortcut.

The error is gone now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.