When i want uninstall the rules module i get this error: Fatal error: Call to undefined function entity_exportable_schema_fields() in /*/sites/all/modules/rules/rules/rules.install on line 76

Regards Stefan

Comments

fago’s picture

Category: bug » support
Status: Active » Fixed

make sure to run entity API beta6, as required by rules.

Weaver’s picture

I have the same problem.

Tested on windows xp 32bit - acquia damp stack.
Drupal 7
Rules 7.x-2.0-alpha4

We tested with both entity 7.x-1.0-beta6 and 7.x-1.x-dev

Go to Modules - Uninstall, first have to uninstall Rules UI & Scheduler, then uninstall Rules

The uninstall reported successful but the modules were still listed and that prevented us installing the newer dev release.

Weaver’s picture

Status: Fixed » Active
Weaver’s picture

7.x-2.x-dev

Fatal error: Call to undefined function rules_ui() in C:\DrupalSites\drupal-7.0\sites\all\modules\rules\rules_admin\rules_admin.module on line 14

Seemed to uninstalled scheduler ok but not rules ui, so now i am stuck with rules and rules ui.

Please tell me how to manually uninstall so I can install latest build.

Thanks.

fago’s picture

Title: Can not uninstall rules » Uninstallation of rules fails
Category: support » bug

ouch, the problem is #1029606: Regression: Not loading the .module file causes a fatal error when uninstalling some modules (as does loading it).

Thus, you should be able to uninstall it that way:
* leave "rules" enabled, uninstall rules_ui and rules_scheduler
* disable rules and uninstall it
* disable entity and uninstall it

fago’s picture

marked #1079394: Uninstall error as duplicate

NPC’s picture

Regarding #5 - enabling Entity API gives a stable WSoD on my site, and I have a similar problem with updating Rules (Fatal error: Call to undefined function entity_exportable_schema_fields() in /*/sites/all/modules/rules/rules/rules.install on line 158) - how do I complete the update process or uninstall Rules?

A complication for me is that Rules is already disabled by direct edit in the DB (because of the Entity-related WSoD), so it isn't even enabled - yet still requests that I complete its pending update.

PS (and yes, I now know why it is IMPORTANT to make backups before every single update - I was thinking this one would be a snap, yet it wasn't, oh no)

fago’s picture

Status: Active » Fixed

that's fixed, so updating to d7 head should fix this.

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.