When attempting to enable Rules I get a WSOD and all subsequent attempts to access the site result in WSOD.

The Apache error log contains errors like the one below:

[Mon Oct 27 21:44:12 2014] [error] [client 127.0.0.1] PHP Fatal error:  Class name must be a valid object or a string in /usr/share/drupal7/includes/common.inc on line 7848, referer: http://xxx.yyy.local/admin/modules?enabled=1&disabled=1&required=1&unavailable=1

If I remove the Rules module (delete the folder from the site modules folder) I can once again access the site.

I tried clearing the caches but no change. I then disabled APC and Memcache and that seemed to improve things...Rules actually showed us as enabled. So I tried to enable the other two modules (Scheduler and UI) only to get another WSOD and these errors in the httpd error log:

[Mon Oct 27 21:56:47 2014] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function rules_invoke_event() in /etc/drupal7/xxx.yyy.local/modules/rules/modules/events.inc on line 180, referer: http://xxx.yyy.local/admin/modules
[Mon Oct 27 22:01:46 2014] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function rules_ui() in /etc/drupal7/xxx.yyy.local/modules/rules/rules_admin/rules_admin.module on line 13, referer: http://xxx.yyy.local/admin/modules?enabled=1&disabled=1&required=1&unavailable=1

Not an encouraging start!

cheers,
Andrew

Comments

lostchord’s picture

Priority: Major » Normal

I re-cloned the base VM (this is happening in VirtualBox) and disabled memcache and APC. I then reinstalled the other modules I'm working with (Feeds and related modules) and set up a working feed. At this point I installed the base Rules modules and experienced no issues. Following this I enabled APC - no problems so far - and then enabled memcache - again no problems.

So perhaps the issue is with enabling the modules with the performance modules enabled or, not out of the question, some of the modules I'd previously installed/uninstalled had messed with my sandbox.

I will start using rules - and some related Rules modules - now and see what happens.

Put this on 'Pause'.

Cheers,
Andrew

tr’s picture

Status: Active » Closed (cannot reproduce)