Questions tagged [migrations]
"Migration" means any migration of data to a Drupal site.
1,400
questions
0
votes
2
answers
291
views
Migrate accessing source fields by name instead of by selector?
I'm working on the MongoDB source plugin and I'm able to do the migration, but I have to make strange compromises. When defining the source fields, I have to set name the same as selector, like this.
...
0
votes
2
answers
54
views
Problem with upgrading because an unmigrated module
I am trying to migrate a Drupal 8 site to Drupal 9. Though most of the migrations have gone easily, this site breaks because it uses the Video module, which hasn't been updated for Drupal 9.
...
0
votes
1
answer
1k
views
How can I debug a Twig error that occurs after migrating from Drupal 8.9 to Drupal 9+
I am trying migrate my Drupal 8.9 site to Drupal 9+ and I am stuck with an error its cause I am not able to hunt down. On almost every page I get the following PHP exception:
Twig\Error\RuntimeError: ...
0
votes
0
answers
293
views
How can I prevent my migration from overwriting existing nodes instead of using the source's (D7) NID
I have imported my content types from D7 to D9 using /upgrade for the complete migration and the data is all good. I then have a separate migration to import and convert my date fields and this works ...
0
votes
1
answer
450
views
Using root source property within migrate sub_process plugin
I'm performing migration from Drupal 9 into another Drupal 9 project.
Let's say "content features" migration.
In a node migration I'm trying to create stubs for media items.
The media source ...
1
vote
1
answer
583
views
How to implement TrustedCallbackInterface
I'm maintaining a module that I've had a 3rd party dev build for me. I D9 this issue has appeared when using the module that otherwise works in D8 and should be compatible with 8 & 9.
The module ...
2
votes
2
answers
2k
views
How to use migrate process plugin concat on multiple values?
I am trying to import from a csv that has multiple files in the same column, e.g.
title,gallery,tag
node1,img1.jpg|img2.jpg|img3.jpg,2
node2,img4.jpg,2
node3,img5.jpg|img6.jpg,3
I need to prepend the ...
0
votes
1
answer
225
views
Can't migrate files that contain spaces and underscore
I'm migrating my D7 site to D9 and I'm getting 2K+ fail migrations for my files directory. It's failing because the file names contain Spaces and Underscores.
Does anyone know what I need to do to ...
0
votes
1
answer
267
views
Import multiple images with sub_process and image_import
I have some nodes with multiple images I want to import. How can I combine sub_process plugin with image_import?
"field_image":[
{"src":"https://example.com/image1.png&...
0
votes
0
answers
119
views
unserialize(): Error at offset 0 of 18 bytes
I am doing a migration from Drupal 7 to Drupal 8. Its using a MYSQL database (Server version: 8.0.26-0ubuntu0.20.04.2 (Ubuntu)). With this one particular node type when I drush cr and then reload ...
0
votes
1
answer
513
views
How do I migrate body content with [embed]*[/embed] tags?
Currently I am working on migrating a Drupal 7 site to Drupal 9. The nodes in the site has nodes with content similar to the following one.
<h3><strong>WHAT WILL YOUR NEXT MEAL BE?</...
1
vote
0
answers
227
views
Files migration from local dev site
I'm migrating from Drupal 7 to Drupal 9 and am having an issue with my source files getting found with the upgrade_d7_file migration. My public files directory for my source site is not 'sites/default/...
2
votes
1
answer
85
views
Migrate order billing profile
I'm trying to migrate order data from an existing site using CSV files and I can't get the billing profile to relate.
In trying to troubleshoot this, I have it set just to insert a default value of a ...
1
vote
1
answer
914
views
Migration lookup and no stubbing
I have a problem with languages and no stubbing regarding migration_lookup plugin in Drupal 8.
I have a different json data, each of them is different languages for example
json with de:
data:{ id: ...
0
votes
2
answers
52
views
Best upgrade path?
One of my Drupal sites has been languishing on Drupal 5.
It has a lot of content, so I can't just start from scratch. I'm considering to finally upgrade it to Drupal 9.
What would be the best and ...
-3
votes
1
answer
364
views
The website encountered an unexpected error. Please try again later. as shown in body [closed]
I tried to set up my drupal 8 full project on localhost but after set up when I run project
getting error as shown below:-
The website encountered an unexpected error. Please try again later.
Drupal\...
-1
votes
1
answer
143
views
What is Pages (from D7 and D8) replaced with in D9?
I'm working on a D9 project that we just migrated from D7, but there doesn't exist a admin > structure > pages link. What was this replaced with? Same with Panels, I still see Panels as a ...
1
vote
1
answer
1k
views
Fill multi-value field from comma separated values in a field
I have data in xml which I want to import into drupal. Which works fine. But one field in the xml is filled with a comma separated list of terms. There is a target field in drupal which is a multi-...
0
votes
2
answers
225
views
Map profile_id based on previously mapped uid when migrating user profiles from CSV file
I'm trying to migrate users and user profiles to site, where both entities might be already present. In this case I would like to overwrite specified fields and leave others in the original state. I'm ...
2
votes
1
answer
770
views
Migration of a custom Rest API using PATCH/POST
I had a custom REST API working with Drupal 8 perfectly. After upgrading to Drupal 9.2.X, the Patch and Post methods of this custom REST API stopped working. Now they throw the following exception.
...
0
votes
1
answer
41
views
Custom Migration Plugin MySQL Error
I've run into the following error when running the command drush migrate-import custom_spotlight
where custom_spotlight is the name of the plugin. I've been following along with this guide: https://...
0
votes
0
answers
127
views
Sql Migrate - working example
Ok I just spend 8 hours with the migration module. I was not able to find just one working example for the migration of sql data. Even Drupal's own documentation has the state "outdated".
I ...
1
vote
0
answers
81
views
How do I migrate product fields?
I'm migrating Drupal 7 commerce products to Drupal 9 and I'm using:
Drush (10.5.0)
migrate_plus
migrate_tools
commerce_migrate_commerce
commerce_migrate
I have successfully migrated nodes, but I ...
1
vote
1
answer
269
views
How to determine which password hash is used?
We have migrated website from a vanilla coded PHP to Drupal, and I have also migrated all the users.
The old website has been using the password_hash() function to encrypt the password.
The website ...
0
votes
0
answers
208
views
Passed variable is not an array or object
Trying to migrate images by copying them from an external source:
id: custom_news_migration_with_external_images_1
label: custom news migration with external images importer
source:
plugin: ...
1
vote
1
answer
304
views
Subsequent migrations take long time to being importing data to destination
I've got a pretty large migration set of roughly 200k users. The first time I run the migration (via drush), or after rolling it back and starting again, the rollback+import starts immediately. By ...
3
votes
2
answers
894
views
Migrating content from live to development environment with Docker
I'm trying to create a localhost development server with a dockerized drupal 8 environment and need to transfer the content from the live site to localhost.
I have followed the instructions for ...
1
vote
2
answers
2k
views
How do I migrate a nested paragraph field?
I have a wrapper paragraph, Layout (para_layout), which has the following fields.
I created the same paragraphs and field structure in a Drupal 9 website. I created the following custom migration ...
-1
votes
1
answer
397
views
How can I import data from XML into a content type using the Migrate module?
I have activated the Migrate, the Migrate Plus, and the Migrate Tools modules. I have then imported a migration file at /admin/config/development/configuration/single/import.
id: beetween_jobs
label: '...
0
votes
1
answer
28
views
How can I see which modules can be upgraded when upgrading core?
Is there a way to get the list of the modules installed on a Drupal 7 site which could be upgraded to Drupal 9 or replaced by modules compatible with Drupal 9?
-3
votes
1
answer
60
views
image not linking to user during migration
I run a migration to first import images as below , it works and imports the pictures as files but when i do the user import with the snipped at the end of this post it doesnt attach the image to the ...
1
vote
1
answer
326
views
"Can't migrate source field body of type text_with_summary configured with plain text processing."
I am trying to migrate a Drupal 7 site to Drupal 8, but I get the following error message.
Can't migrate source field body of type text_with_summary configured with plain text processing. https://www....
0
votes
1
answer
421
views
Change the Source DB for migrating via Drush
A few days ago I originally ran the full migration via the UI to get the site up and running and cleaning up any bugs from a DB instance that is a copy of the current live site. However, now that the ...
0
votes
1
answer
65
views
How to keep the non mapped paragraphs during migrations?
I am migrating content that contains paragraphs also. So I have two migration files.
When the content is migrated. Everything is fine. I can see the paragraphs are attached with the nodes.
When I edit ...
0
votes
0
answers
97
views
Migrating Translated User Entities slowing migration down significantly
I have a very large site I'm attempting to migrate from D7 to D8 but am experiencing significant performance issues. We have around 35,000 users, so I don't expect this to be fast, but if I don't make ...
0
votes
0
answers
312
views
Skip_on_empty row method working, but entity still created
I am migrating a field in a node to a paragraph. I am trying to only create the paragraphs where the field has values. That field is an entity reference to another node.
source:
plugin: d7_node
...
0
votes
1
answer
1k
views
Migrating paragraph items to their host nodes from Drupal 7 to Drupal 9?
I am trying to do a Drupal 7 -> Drupal 9 migration using the UI. It was able to convert field collection types to paragraph types. I was also able to create a few custom migrations using the ...
0
votes
0
answers
98
views
How to preserve the values of paragraph fields in migration?
I am migrating content with paragraph fields.
My paragraph migration.
langcode: en
status: true
id: my_paragraph_import
label: Paragraph import
migration_tags:
- paragraph
- my_paragraph_import
...
0
votes
1
answer
190
views
Do i need write access to the files directory to migrate d7_file?
I'm migrating a site from drupal 7 to 8. It has many many media files. Something like 6TB worth. And adding daily. So i want to do the db migration on my machine (not the webserver), work out ...
1
vote
2
answers
641
views
How to unpublish nodes which are missing in migration source?
I have a CSV file with two rows. I executed the migration and two nodes are imported.
Now I deleted one row from the CSV and execute the migration again.
I now want to unpublish the node which is ...
1
vote
0
answers
224
views
How do I set cURL options in a custom migration?
I have a custom migration that needs to get JSON data from a remote URL. This works fine in a beta environment outside of ddev, but I'm having trouble in a ddev test environment because of SSL on the ...
2
votes
1
answer
488
views
Custom migrate source plugin, extends FieldableEntity class, has migrate status of [error] No migrations found. Why?
I'm writing a migrate source plugin for migrating D7 entityform (entityform module) submissions. If anyone has done this or knows an existing plugin, please let me know.
I am trying to extend the ...
2
votes
0
answers
228
views
Problems with file migration
I'm in the process of migrating a fairly large old site that has been migrated from Drupal 6 to Drupal 7, and now to Drupal 8.
There are a few issues about getting this done, but I have a grip on most ...
0
votes
1
answer
96
views
Migration doesn't work when executed with cron
I've set up a migration between 2 Drupal sites hosted on the same server (Drupal 8 -> Drupal 9). I'm using migration support recently added to drush to run these commands. I've created a helper ...
0
votes
0
answers
138
views
How can I migrate users?
I need to rebuild my website, actually built with Drupal 7, and install Drupal 8.
I have some modules that don't exist in Drupal 8. So, I decided to install Drupal 8 and rebuild the website from ...
1
vote
0
answers
423
views
Migrate field collection to paragraphs and split into multiple paragraphs
I'm migrating a Drupal 7 site with field collections to Drupal 8 paragraphs, but I'm having some issues setting up the migration.
In Drupal 7 I have a News content type with a multi-value ...
0
votes
1
answer
193
views
How to query only specific id's in a custom source plugin
I have 40/1040 source product_id's I need to ignore in one migration, so that I can put them in their own separate migration. I can exclude and include them in the yaml files, but it's a bit ugly and ...
0
votes
1
answer
652
views
How to iterate multi dimensional array and pipe each sub array to another plugin as input in Migration yml
I am migrating CSV data into Nodes and Paragraphs in Drupal 8.
I have field in CSV file which has JSON data, I have written a process plugin to convert JSON data to multi-dimensional array.
I would ...
0
votes
1
answer
379
views
Migration with custom files path
I have to migrate a website from Drupal 7 to Drupal 9.
My Drupal 7 files were located in this directory : sites/mywebsite/files
In Drupal 9, files will be located in this directory : sites/default/...
1
vote
2
answers
1k
views
Upgrade Status module reports PHPUnit\Framework\TestCase is not an interface
Our site is running Drupal 8.8.13 and we want to move to Drupal 9. I've installed the Upgrade Status module v3.3. When I scan a module, like Admin Toolbar, it reports the problem:
web/modules/contrib/...