i disable redhen_relation module and on uninstall tab after i want uninstall it aget bellow error

Fatal error: Call to undefined function relation_type_delete() in /sites/all/modules/contrib/redhen/modules/redhen_relation/redhen_relation.install on line 123

Comments

levelos’s picture

Status: Active » Closed (cannot reproduce)

Can't recreate, the function is certainly there.

nerdoc’s picture

I also have this bug with redhen 7.x-1.12.
I had accidentally deleted the redhen module without deinstalling redhen, maybe Drupal removed the function names from its cache and therefore can't find the function.
Then I re-downloaded redhen with drush dl redhen.
Deleting the cache did not help.

Can't recreate, the function is certainly there.

Funnily, when I go to sides/all/modules/redhen, and doing agrep relation_type_delete * -R there - it finds only:

modules/redhen_relation/redhen_relation.install:    relation_type_delete($type);

And nothing else. Where exactly is this function located?

I'm stuck and can't deinstall redhen_relation - anything else I can do here?

nerdoc’s picture

The function is in the relation module, not in redhen_relation, which depends on it.