drush migrate:duplicate-file-detection <name> crashes

Created on 21 December 2019, almost 5 years ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

With Drupal 8.8.1

Steps to reproduce:

drush migrate:file-media-fields node article image image
# added new media image field to Article

drupal generate:module # creates module bapc_file_migration_2

drush generate yml-migrate_file_to_media_migration_media 
# adds config imlm files into module bapc_file_migration_2

drush en  bapc_file_migration_2

drush migrate:duplicate-file-detection migration_2
# crashes per report

Crash report (listing in attached file)

Error: Call to a member function getIdMap() on null in Drupal\migrate_file_to_media\Commands\MediaMigrateCommands->duplicateImageDetection() 
(line 253 of /var/www/drupalvm/web/modules/contrib/migrate_file_to_media/src/Commands/MediaMigrateCommands.php)

Crash report and module code attached

💬 Support request
Status

Closed: works as designed

Component

Code

Created by

🇬🇧United Kingdom iainH

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

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.71.5 2024