Related Content
Drupal 11: Using The Batch API To Process CSV Files
This is the fourth article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Using The Finished State In Batch Processing
This is the third article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Batch Processing Using Drush
This is the second part of a series of articles looking at the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: An Introduction To Batch Processing With The Batch API
The Batch API is a powerful feature in Drupal that allows complex or time consuming tasks to be split into smaller parts.
Drupal 10: Testing Migration Process Plugins
Drupal's migration system allows the use of a number of different plugins to perform source, processing, and destination functions.
LocalGov Drupal Camp 2024
April 23rd, 2024 saw the first LocalGov Drupal Camp, held at the Birmingham Council buildings in Birmingham city center.
Comments
I would not advise to do this. I'm not sure if it works on Drupal 8, but it definitely does NOT work on Drupal 9+ websites. I attempted to do this on a new website I just created, to see if the process works. I exported the config of a Drupal 9 website I created a few weeks ago and imported it in the new Drupal 9 website, after changing the site ID in the exported config bundle.
What seems to have happened when I tried it:
Indeed, Drupal check the site ID system.site.yml file, but it also uses the IDs in every other files. If an entity exists in Drupal but is not present in the import (i.e. it can not find its ID in the import), Drupal will delete the entity on the website. Since every single entities in Drupal have a different ID from the one in the import, Drupal attempts to delete every single entities before creating the new one. Unfortunately, Drupal can't function without any entities, so it dies and can't perform the import, leaving you with a broken website.
Submitted by Gael Lafond on Tue, 02/22/2022 - 09:03
PermalinkThanks for the information Gael.
I wonder if the effect you are seeing in Drupal 9+ is something do to with Configuration 2.0? Sounds like not only would you need to alter the main site ID, but also the uuid of every item of configuration in your site.
I have to admit that this technique is a bit of an edge case, but it sometimes got me out of certain situations in Drupal 8. Situations created by certain local development environments that I wont mention here.
Submitted by giHlZp8M8D on Tue, 02/22/2022 - 09:11
PermalinkJust ran on a new Drupal 9 install as part of trying to instal a themeforrest theme. Found the same problem as commented by Gael.
In th eINSTALL directory of the unzipped theme is 485 yml config files.
How is one supposed to import the config?
Submitted by Chris Chaplow on Tue, 11/01/2022 - 15:01
PermalinkTo the hashbangcode.com webmaster, Thanks for the well-written and informative post!
Submitted by Adelaida Keble on Mon, 02/06/2023 - 00:30
PermalinkAdd new comment