Hi there I'm just a module monkey so apologies in advance for idiocies and thank you also in advance for any help you can offer.

I am also fairly new to Drush which was installed for me by a friend on the server.

I am attempting to install and enable Rules module on my D7 OG site, but I keep getting fatal errors about classes not existing etc. Endless rounds of removing module files and restoring from backup, manually truncating cache tables, uninstalling the module and deleting from file system (it still shows up in Module list), even dropping rules-related tables then trying again.
Here is what happens in terminal:

The registry has been rebuilt via registry_rebuild (A).              [success]
class_implements(): Class RulesEntityController does not exist and   [warning]
could not be loaded entity.module:713
in_array() expects parameter 2 to be array, boolean given            [warning]
entity.module:713
class_implements(): Class RulesEntityController does not exist and   [warning]
could not be loaded entity.module:713
in_array() expects parameter 2 to be array, boolean given            [warning]
entity.module:713

Fatal error: Class 'RulesUIController' not found in /home/aureusst/public_html/sites/all/modules/rules/rules.module on line 25
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Class 'RulesUIController' not found in
/home/aureusst/public_html/sites/all/modules/rules/rules.module, line
25

Help?

Comments

omega8cc’s picture

This "it still shows up in Module list" directly after "uninstalling the module and deleting from file system" seems to suggest that you have duplicate copy of rules (either complete or partial) and Registry Rebuild will not help with this, since it can help only with registry update/rebuild after the module has been moved, but not when there are conflicting and possibly incomplete copies/leftovers.

You need to find and remove all copies of the rules module you have there, and only then upload it again to sites/all/modules, run aggressive mode: drush rr --fire-bazooka, enable the rules module, disable the module, uninstall it (important step!) and only then enable it again.

omega8cc’s picture

Also, make sure that PHP version you have installed is compatible with Drupal core and contrib you are trying to use.

omega8cc’s picture

Status: Active » Closed (cannot reproduce)

Closing due to inactivity for a long time.