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>

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marco-s created an issue. See original summary.

marco-s’s picture

Status: Active » Needs review
FileSize
626 bytes

According to this issue (2565043) I add this patch for MigrateSourceList (list.inc)

brianfisher’s picture

I'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.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

+1

  • pifagor committed 7436091 on 7.x-2.x authored by tbfisher
    Issue #2900303 by marco-s, tbfisher: Handle empty idlist in...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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