Questions tagged [migration]

"Migration" means either the migration of data from from a different framework/CMS to Drupal, or from Drupal to Drupal.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Wordpress Migrate 8 “unexpected error”

I am trying to import a Wordpress 5 XML export to a Drupal 8 site with Wordpress Migrate (version 8.x-3.0-alpha3). It seems to go well up to the "Execute" step, with the correct number of pages and ...
0
votes
0answers
6 views

How can I populate and entity reference field/videos that have been previously migrated to the media library?

Upgrading from D7 to D8, we previously migrated D7 youtube and vimeo videos to the Drupal 8.8 core media library. We now are attempting to migrate the Video nodes and their media library video fields ...
-1
votes
1answer
15 views

Is it possible to import content from external API?

I'm working on a new website and i have an external API that provides some content. I wonder if it is possible to import that content from the API using Migrate or custom module ? Note : The content ...
-1
votes
1answer
22 views

Set up a cron job to run drush migrate command

I have a custom module which migrates articles from a remote xml file. Because the RSS feed changes, I want my Drupal site to be in sync with the RSS feed. How do add e.g this command drush mim ...
0
votes
0answers
10 views

Migrate update all nodes on the first import / track_changes don't work

i'm using migrate to create and update nodes from external sources (xml files). These xml files are stored inside a directory and are deleted and re-uploaded once a day (during night). In these files, ...
0
votes
0answers
27 views

How can I merge a development site with a production one on an earlier core version?

I work for a small company that currently has a Drupal 6 site setup and working well on a live Azure server. However, we need to migrate to D8 (should have done it years ago!) and are wondering how to ...
-1
votes
1answer
64 views

XML parser selector skips mixed content in migration

I am trying to migrate and map the source fields of an external rss/xml file into Drupal. I have built a custom module: In config/install folder I have my yml file modules/custom/import_rss/config/...
0
votes
0answers
28 views

Add database connections on the fly, instead of defining them in settings.php

I am trying to add DB Information on the fly, instead of defining in settings.php I am adding connection on module install $other_database = array( 'database' => 'pantheon', 'username' =>...
0
votes
0answers
7 views

Term not being migrated into taxonomy reference field

I've got two migrations set up, pulling from two separate JSON feeds. The first is a feed of taxonomy terms with a tid, vid, and name. I'm able to run migration on this fine and generate the relevant ...
0
votes
1answer
29 views

Drupal 8 external content migration translation problem

I am trying to import content into Drupal 8 from an external source (not previous Drupal version). I have crawled the original site and placed the content in a database. I am then writing a custom ...
0
votes
0answers
12 views

D7 to D8 Migrated webform is not detected in layout

I tried to add a webform that is migrated from drupal 7 site inside a layout for homepage. On adding the webform in a region, it showed error as "There are no entities matching webform_4" But the ...
0
votes
0answers
29 views

Moving to new composer.json with web directory

In my Drupal 8.8.2 site, all my images were in public_html/sites/default/files. But in the new scheme of things, the sites directory is under public_html/web/sites/default/files, and every link is ...
1
vote
1answer
17 views

Metatag migration from html

Drupal 8.8 Modules: Metatags & Migration plus. I am trying to convert a tag in an XML file to an open graph image metatag. File: modules/custom/my_module/dataxml.html This is the url that has ...
0
votes
0answers
16 views

Migration hierarchical taxonomy terms with same terms (without unique id)

Hello I'm using the Migrate module in Drupal 8.8.2 Currently I am working on a migration of products via an XML file. The products are available in different coatings an colors. The hiëarchial ...
0
votes
0answers
26 views

Images are not showing after migration and were also not migrated into the files folder

I am trying to migrate drupal 7 to drupal 8 using default migration modules ( Migrate, Migrate Drupal, Migrate Drupal UI, Migrate Plus, Migrate Source CSV, Migrate Tools ) using this modules content ...
0
votes
0answers
13 views

Migration_lookup plugin when field names don't match

I had a migration for image files to media images. It used a migration lookup of: field_media_image/target_id: - plugin: migration_lookup migration: agr_file source: fid Now I am migrating ...
0
votes
1answer
100 views

How can I reference previously imported media entities?

I have been trying to attach media entities to node entities in Drupal 8 with a custom migration but despite numerous attempts and countless hours reviewing forums i'm stumped - I'm desperately hoping ...
1
vote
2answers
90 views

How to skip empty and missing values from a migration

I'm trying to skip fields that are not present in my source file or that are empty, but I keep getting "Migration failed with source plugin exception: Passed variable is not an array or object" This ...
0
votes
0answers
16 views

How can I combine “concat” after “explode” in Migrate API YML?

I have a YML file for creating Commerce Variation and create their multiple images. However, I can not get "concat" to work after "explode" so that I can add the full file path to the exploded file ...
0
votes
1answer
26 views

What's the easiest way of importing content of a custom D6 content type into a D8 site?

I have a Drupal 6 site with three custom content types. We have tried using the Migrate Drupal UI module to migrate these to our new Drupal 8 site, but this resulted in all of the plain text fields ...
0
votes
0answers
21 views

Migrating Drupal 7 to Drupal 8 - Source Plugin Error

I am trying to migrate a Drupal 7 site to Drupal 8, however, I keep getting this error; Resolve all issues below to continue the upgrade. The d6_library_transaction plugin must define the ...
0
votes
0answers
13 views

How to migrate file fields to media entities in a multilingual site?

I'm trying to migrate images from a file field on a multy-language site - migrated from Drupal 6. Most of the pages on the website are from Bulgarian source language and they are translated to English,...
0
votes
0answers
28 views

How can I import and create multiple images from CSV file using Migrate Plus API?

I've done a lot of research but none of the examples seem to fit our use case. I have a migrate plus YML file that creates images from a CSV file that will then be used on Commerce products migrate ...
0
votes
1answer
27 views

Migrate two user fields (translation) to translation

I'm trying to migrate two user fields in Drupal 7 (name in two languajes) to a translated field in Drupal 8. I have tried several options but all failed. I have two yml templates (one for the user and ...
1
vote
1answer
52 views

How can you reference taxonomy term by another field in Yaml file?

I created my own Yaml file with fields inside to migrate nodes. I run into this problem. If I use the feeds module, I can set (during mappings) that a given field (taxonomy term reference field) can ...
0
votes
0answers
29 views

Migrate entity reference fields attached to a node or user entity

I'm trying to migrate content from drupal 7 to existing drupal 8 website. I created a custom module with configs to make custom migration. I have an entity reference field in drupal 7 referenced to ...
0
votes
1answer
111 views

Getting Error : “You must declare ”ids“ as a unique array of fields in your source settings.” while trying to migrate for paragraph in Drupal 8

I have created a yml configuration for migration from CSV source into drupal using composer. After running the "drush migrate:import mbe_book_paragharphs", I am getting the error as You must declare "...
-2
votes
1answer
106 views

How to import a million of nodes? Very slow import

I've been dealing with this problem for several days. I need to import around 1,600,000 nodes (one time). Everything is set correctly, but the speed is horrible. Both on the shared server and on the ...
1
vote
0answers
30 views

Migration executes from drush but not from UI

I have a list of migrations (custom ones but following the guidelines). The migrations have no problems being executed from console with drush mim but if I try to execute them from the migrations UI I ...
0
votes
0answers
21 views

XML migration body field process plugin

I have my migrations pulling in my field data. However, I cannot figure out how to get the text_format set in my YML file so the HTML doesn't show up on import. I have my content type body text format ...
0
votes
2answers
70 views

Migrate user password hash

We are migrating our old site from plain PHP to Drupal 8. Passwords are hashed with MD5 in the old site; I need to migrate them in Drupal. I tried the following code, but it takes the password as ...
0
votes
0answers
25 views

Drupal Site Migration from FreeBSD 12 to Ubuntu 18.04 SQL database unknown behavior

I am currently trying to migrate the Drupal Site from FreeBSD 12 to Ubuntu 18.04. All the configurations are copied and moved to Ubuntu 18.04. Everything seems fine and I was able to create the Drupal ...
0
votes
0answers
21 views

How to use migration to update field content ant not replacing if it already exists?

In a custom module (assoc), I have a custom Content Entity (Member). I migrated Member content from a Drupal 6 site using Migrate Source CSV, Migrate Plus, Migrate Tools and this migration file: id:...
1
vote
0answers
33 views

Start migration via rest or from a button within a view

I have a bunch of migrations that update a bunch of nodes. I want to automate the process and also be able to rollback / add / update specific nodes for specific migrations. Basically I need a ...
0
votes
0answers
33 views

Migrate into paragraphs without parent import

If I have a data source with some values, can I process those into a paragraph attached to a node in Drupal 8 without having to run a prior migration to create the paragraphs first (and then relying ...
0
votes
0answers
40 views

What kind of hook_entity can be trigerred by a migration on this entity?

I have a custom content entity on which I can run a dedicated migration from csv with a form. The form is used to upload the csv file launch the migration The submit part of the form: $fileId = ...
-2
votes
1answer
37 views

Drupal 8 migrate fields not filled

I'm trying to migrate content to D8 site from sql source. In my migrate_plus.migration.node_article.yml config file I've following: id: node_article label: Article Migration migration_group: ...
0
votes
0answers
79 views

How to translate menu items with migrate?

I'm importing menu items from CSV using migrate, migrate_tools, migrate_plus and migrate_source_csv. This is an example of how I'm doing it for the original language: source: plugin: csv path: '...
0
votes
1answer
30 views

Migrations dependencies: run one by one?

I have a few migrations in the same group for singe multi-language entity type set up. One migration handles one language. I need to make sure that default English language migration runs first and ...
0
votes
2answers
55 views

Problem w/ Migrate Source CSV importing Body content w/ HTML

I am using migrate_source_csv to import node body fields. The header for my CSV file is: "nid, title, body". The body fields contain HTML. My problem is that, on import, the HTML is being encoded into ...
0
votes
1answer
47 views

Migration from CSV: how to define a default value for autoincremental id field?

I run migrations from CSV using Migrate Source CSV, Migrate Plus and Migrate Tools modules and it works fine. The result of one of these migration is a custom entity which key is a 'id' field that has ...
1
vote
2answers
76 views

Location migration not working

I'm trying to convert a d6 location field into a a d8 geolocation field, but when I run it the field does not get updated, and I don't get any messages either. All of the other node data has been ...
0
votes
1answer
30 views

How to upgrade to Drupal 8 from 7 with clean install? [closed]

I currently have a Drupal 7 site that I want to install Drupal 8, but do a clean install. This means wiping away everything and starting with a new Drupal 8 instance. I have seen many articles on how ...
0
votes
2answers
240 views

How can I inject container to a class with constructor having arguments?

Fatal error: Declaration of Drupal\migrate_upgrade\MigrateUpgradeDrushRunner::create(Psr\Container\ContainerInterface $container, $options = Array) must be compatible with Drupal\Core\...
0
votes
1answer
17 views

Migrating input formats for taxonomies with empty description

I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.7.10 and Drupal 7.61 for a copy of the production website. I have tried to migrate ...
0
votes
0answers
59 views

Using native sql query at migration

I want to use a native SQL query for my source migration class, but I can't find a way. I've tried to use the $this->database->query() but in that case, it will fail because there's no ...
0
votes
0answers
39 views

Migrate one to many relationship

My D8 site has two entities: resource author The resource entity has a field_authors entity reference field with unlimited cardinality. My source data is coming from 3 tables resource author ...
2
votes
1answer
78 views

drush migrate-upgrade “[debug] key_value table not found. Database may be empty.”

I am trying to migrate a D7 site to D8 following the steps found here . Once I can manage it and make sure I have all the PHP components, Drupal modules and etc. I have 4 sites to update, and one ...
0
votes
1answer
80 views

Migrated content type fields not showing

I'm trying to migrate custom content types with attached fields from Drupal 7 to Drupal 8. Using drush migrate commands I can successfully migrate all content types, but I have problem with fields. ...
0
votes
0answers
22 views

How can I migrate a site to another site with a different installation profile?

How can be D8 sites migrated in Aegir between different installation profiles, and not only between platforms using the same installation profile? There is a solution in Aegir for D6->D7 and D7->D7 ...

1
2 3 4 5
25