Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | 2952607-3.patch | 444 bytes | benjifisher |
Comments
Comment #2
benjifisherThe attached patch fixes the problem on my site.
Comment #3
benjifisherComparing 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
withsource_module
instead of having both. The attached patch does that. I do not think an interdiff is needed here.Comment #4
marvil07 CreditAttribution: marvil07 at Isovera for Pegasystems commentedSecond patch looks good.
Added links to change records on the summary.
Comment #5
marvil07 CreditAttribution: marvil07 at Isovera for Pegasystems commentedLinks edited.
Comment #6
heddn+1 on rtbc. And bumping to critical because this blocks an upgrade path from D7.
Comment #8
svendecabooter