I'm trying to uninstall the Migrate module and first you're required to uninstall the Migrate Extras Profile2 Example module. When I try uninstalling that one I get the following error:

Fatal error: Class name must be a valid object or a string in /Applications/MAMP/htdocs/hhmi/www/includes/common.inc on line 7522

Any suggestions?

-Trevor

Comments

ambientdrup’s picture

I went ahead and just removed the entire Migrate Extras module folder and that seems to have solved the issue.

-Trevor

mikeryan’s picture

Project: Migrate » Migrate Extras
Version: 7.x-2.2 » 7.x-2.x-dev
Component: migrate_example » Profile2
Status: Active » Postponed (maintainer needs more info)

Start by looking at line 7522 of includes/common.inc in your installation for some context - in mine that line is

  $controllers = &drupal_static(__FUNCTION__, array());

which has no object references. Knowing what core function is being called might provide some clue as to what's happening.

mikeryan’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

OK...

Status: Fixed » Closed (fixed)

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

Michsk’s picture

Status: Closed (fixed) » Active

I'm wondering why this was set to fixed while the 'fix' mentioned is not a fix. He just removed the folder and that's not an uninstall.

I am experiencing the same issue, it's just impossible to uninstall this part of the migrate extras module. I have tried the latest dev and recommended but both are not able to uninstall.

Michsk’s picture

This has to do with entity_load_multiple_by_name('profile2_type', array('migrate_extras_profile2')). I just can't figure out what's wrong, i have the entity_api module installed but it just won't do it.

Michsk’s picture

So the thing here is that (if i understand everything correctly) we don't have the entity were calling profile2_type.

If done a:

function migrate_extras_profile2_uninstall() {
  dvr(field_info_bundles());
  exit;
}

And that returns a whole lot of entities but not profile2, and definitly not profile2_type.

//edit
Strange since profile2_module should create that entity, since the profile2_module install has:
entity_create('profile2_type');

Michsk’s picture

That's bizare... i had profile2 uninstalled... but migrate extras profile2 example was installed.

Yeh, so this is fixed. I someone runs in to this problem. Make sure profile2 is installed, if it is re-install it. After i installed profile2 i could remove this migrate extras option.

Michsk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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