After updating to 7.x-2.1, I started getting the following errors in the log, and the site eventually went catatonic...

[Wed Jan 06 17:17:14.316747 2016] [:error] [pid 24927] [client 73.68.240.48:43262] PHP Fatal error: Class 'WatchdogRulesController' not found in /home/site-cwm/drupal/sites/all/modules/entity/entity.rules.inc on line 101

I disabled the watchdog rules module via drush, and the errors went away. However, note the error that appeared when I did this:

$ drush dis better_watchdog_ui_rules
The following extensions will be disabled: better_watchdog_ui_rules
Do you really want to continue? (y/n): y
PHP Fatal error: Class name must be a valid object or a string in /home/site-cwm/drupal/sites/all/modules/better_watchdog_ui/better_watchdog_ui_rules/better_watchdog_ui_rules.rules.inc on line 63
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class name must be a valid object or a string in
/home/site-cwm/drupal/sites/all/modules/better_watchdog_ui/better_watchdog_ui_rules/better_watchdog_ui_rules.rules.inc,
line 63

Comments

BruceDawson created an issue. See original summary.

c_lehel’s picture

Assigned: Unassigned » c_lehel
c_lehel’s picture

Status: Active » Fixed
StatusFileSize
new1022 bytes

I've added a files[]=... in the rules submodule info file and removed the module_load_include from the module file. Works now. I'll push it in the devel branch.

  • c_lehel committed 91262f4 on 7.x-2.x
    Issue #2645592: Class 'WatchdogRulesController' not found
    
candelas’s picture

It worked, thanks

leducdubleuet’s picture

This patch works great, thank you.

Would it be possible to do a new stable release please?

Status: Fixed » Closed (fixed)

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

c_lehel’s picture

Sorry for the delay. I thought some other issues also need to fixed and was aiming for a larger fix package for the release. It wasn't the case. The release is out.

ywarnier’s picture

I think I have a similar issue with WatchdogEntity.
I get Fatal error: Class 'WatchdogEntity' not found in [...]/sites/all/modules/better_watchdog_ui/better_watchdog_ui_rules/better_watchdog_ui_rules.module on line 20 and the rest of the stack trace.
Do you think this is related and I should also add better_watchdog_ui_entity.module into files[] as well?