Taxonomy migrations are not recognized when this module is enabled

Created on 25 March 2025, about 1 month ago

Problem/Motivation

When this module is enabled none of the migrations that use the d7_taxonomy_term plugin are recognized.

" No migrations found. " is output when using drush mim your_migration_name.

uninstalling this module gets them to work.

🐛 Bug report
Status

Active

Version

2.0

Component

Migrate

Created by

🇺🇸United States loze Los Angeles

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

Comments & Activities

  • Issue created by @loze
  • 🇳🇮Nicaragua dinarcon

    The module alters migrations using the d7_taxonomy_term source plugin. The new source plugin d7_taxonomy_machine_name_term expects the taxonomy_machine_name module to be enabled on the source site.

    If you are using the taxonomy_machine_name in Drupal 10/11, but did not use it in Drupal 7, then the migrate system will disable/remove taxonomy term migrations because their source plugin requirement is not met. That is, taxonomy_machine_name is not enabled in the source site.

    One way around this is removing this module's hook_migration_plugins_alter implementation like this:

    /**
     * Implements hook_module_implements_alter().
     */
    function UDRUPAL_COM_module_implements_alter(&$implementations, $hook) {
      if ($hook == 'migration_plugins_alter') {
        // Disable taxonomy_machine_name_migration_plugins_alter().
        unset($implementations['taxonomy_machine_name']);
      }
    }
    

    Replace UDRUPAL_COM with your custom module's name.

  • 🇺🇸United States loze Los Angeles

    @dinarcon Thank you for the clarification, I will give that a try.

Production build 0.71.5 2024