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.
Migration fails with empty source.
Migration failed with source plugin exception: <em class="placeholder">Passed variable is not an array or object</em>, in <em class="placeholder">/sites/all/modules/contrib/migrate/plugins/sources/list.inc</em>:<em class="placeholder">167</em>
Comment | File | Size | Author |
---|---|---|---|
#3 | migrate-handle_empty_idlist_in_migrate_source_list-2900303-3.patch | 447 bytes | brianfisher |
|
Comments
Comment #2
marco-sAccording to this issue (2565043) I add this patch for MigrateSourceList (list.inc)
Comment #3
brianfisher CreditAttribution: brianfisher at Chapter Three commentedI'm getting this error for a similar if not same case -- but it's because \MigrateListJSON::getIdList() returns NULL instead of an empty list when the json is an empty list.
Comment #4
pifagor+1
Comment #6
pifagor