I have a couple of sites with migrations I last ran in April (using the 7.x dev code at time) and today using 7.x-2.2 I get this error trying to access them both in the ui and drush (just trying to see the status):
Fatal error: Call to a member function getName() on a non-object in /home/presswire2/drupal7/sites/all/modules/migrate/migrate.module on line 98
And idea what's up? Do I need to trash these migrations (I'd rather not…)
Comments
Comment #1
drewish commentedDo you have them in groups? If not I'd guess the constructor parameters have changed and you're passing a value into the $group parameter to one of the constructors.
Comment #2
skitten commentedYou're right - the Migration consturctor had changed and I was passing in some random string from my previous attempt to get reference fields working. Thanks!
Comment #3
mostoneskin commentedI just updated the Migrate module in the hope that the issues I've raised under https://drupal.org/node/1278994 might be resolved. Haven't had a chance to run drush from the command line as suggested on that log, but the site I'm migrating is bare-bones and I'm in no rush to complete it, so I thought why not upgrade!
Not sure what I have to do to either (a) fix my existing migration so I can continue it or rollback or (b) simply clear all migrations, which I'm happy to do, but get this error if I move to the Migrate tab.
Comment #4
drewish commentedmostoneskin, do you have custom migrations? you're going to have to look at them and see what's being passed up to Migration::__contruct()
Comment #5
mostoneskin commenteddrewish forgive me but I'm still very much a drupal noob. All I was attempting to do was migrate a wordpress export. I had a few issues (hence the issue mentioned previously) that's all. What do you mean by 'custom' and how can I look at the construct call? Happy to dig around but not sure where.