Problem/Motivation

After updating my site to Drupal 8.5.0, I get the following error message when I check on the status of my migrations:

Drupal\migrate\Plugin\Exception\BadPluginDefinitionException: The authmap plugin must define the source_module property. in 
 [error]
/var/www/docroot/core/modules/migrate_drupal/src/MigrationPluginManager.php:104

(stack trace omitted).

This error comes from #2908282: Throw exception for source plugins without a source_module property, which is part of Drupal 8.5.0. See also the change records for that issue.

Proposed resolution

Luckily, the fix is simple. We just have to add a line to the plugin annotation for the migration source plugin.

See drupal core 8.5.0 related change records: #2911881 and #2831566.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#3 2952607-3.patch444 bytesbenjifisher
#2 2952607-2.patch484 bytesbenjifisher
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjifisher created an issue. See original summary.

benjifisher’s picture

Assigned: benjifisher » Unassigned
Status: Active » Needs review
FileSize
484 bytes

The attached patch fixes the problem on my site.

benjifisher’s picture

FileSize
444 bytes

Comparing with #2947642: d6_path_redirect plugin must define the source_module property (same issue for the Redirect module), I think it is better to replace source_provider with source_module instead of having both. The attached patch does that. I do not think an interdiff is needed here.

marvil07’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Second patch looks good.

Added links to change records on the summary.

marvil07’s picture

Issue summary: View changes

Links edited.

heddn’s picture

Priority: Normal » Critical

+1 on rtbc. And bumping to critical because this blocks an upgrade path from D7.

svendecabooter’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.