Update migration warning 'There is translated content of these types'

Created on 20 January 2022, over 2 years ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

I am using Migrate Drupal UI to migrate from a fairly simple Drupal site, with just some article nodes and some taxonomy terms.

After entering DB details for the D7 site, I get to a page which says:

There is translated content of these types:

content items

It looks like you are migrating translated content from your old site. Possible ID conflicts for translations are not automatically detected in the current version of Drupal. Refer to the upgrade handbook for instructions on how to avoid ID conflicts with translated content.

But that is not true. My source site does not have translation module enabled, and nodes are only in the default language.

It looks like the warning is shown because the node migrations which the UI sets up are using the node_complete plugin, and it looks like that plugin is chosen over the classic one somewhere in NodeMigrateType::getNodeMigrateType().

Steps to reproduce

Proposed resolution

  • Improve the "There is translated content of these types" alert wording

See also πŸ› Bypass migration warning 'There is translated content of these types' if Language module is not installed Needs work .

Remaining tasks

User interface changes

Before

With a fresh install of the Standard profile (monolingual, no content) I see the following message:

There is translated content of these types:

  • content items

It looks like you are migrating translated content from your old site. Possible ID conflicts for translations are not automatically detected in the current version of Drupal. Refer to the upgrade handbook for instructions on how to avoid ID conflicts with translated content.

With a fresh install of the Umami profile (including content in two languages) I see the following message:

There is conflicting content of these types:

  • content blocks
  • files
  • taxonomy terms
  • users

It looks like you have content on your new site which may be overwritten if you continue to run this upgrade. The upgrade should be performed on a clean Drupal 11 installation. For more information see the upgrade handbook.

There is translated content of these types:

  • content items

It looks like you are migrating translated content from your old site. Possible ID conflicts for translations are not automatically detected in the current version of Drupal. Refer to the upgrade handbook for instructions on how to avoid ID conflicts with translated content.

After

With a fresh install of the Standard profile (monolingual, no content) I see the following message:

Check whether there is translated content of these types:

  • content items

Possible ID conflicts for translations are not automatically detected in the current version of Drupal. Refer to the Upgrading Drupal handbook for instructions on how to avoid ID conflicts with translated content.

With a fresh install of the Umami profile (including content in two languages) I see the following messages:

There is conflicting content of these types:

  • content blocks
  • files
  • taxonomy terms
  • users

It looks like you have content on your new site which may be overwritten if you continue to run this upgrade. The upgrade should be performed on a clean Drupal 11 installation. For more information see the upgrade handbook.

Check whether there is translated content of these types:

  • content items

Possible ID conflicts for translations are not automatically detected in the current version of Drupal. Refer to the Upgrading Drupal handbook for instructions on how to avoid ID conflicts with translated content.

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated about 24 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024