Installing Action module breaks migration

Created on 23 August 2024, 5 months ago

Problem/Motivation

I was updating the contrib modules in my project and Action module was installed. After updating the modules, I tested my migrations and received an error "The "" plugin does not exist. Valid plugin IDs for Drupal\migrate\Plugin\MigrateSourcePluginManager are: embedded_data, empty, url, table, csv".

Uninstalling the Action module fixes the migrations and after digging the code a bit, the issue seems to be in the "action_migration_plugins_alter" function in the action.module file. Removing the function fixes the migrations and allows the Action module to be enabled. Unfortunately I couldn't understand the issue with the function to properly fix it so I just removed it with a custom patch since we do not need the Action plugins in our migrations.

Steps to reproduce

Have some migrations and Action module installed. Try running migration and see if the error comes up.

Proposed resolution

I assume the function "action_migration_plugins_alter" is trying to map the use of Action plugins in migration to correct plugins in the code. This probably needs refactoring.

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇫🇮Finland thatguy

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

Comments & Activities

  • Issue created by @thatguy
  • Status changed to Postponed: needs info 5 months ago
  • 🇫🇷France andypost

    Please provide the error from your logs as it's not clear what is broken, maybe you're using deprecated action plugins

Production build 0.71.5 2024