I downloaded the rules module via composer require drupal/rules.

When I try to enable the module I got this error.

2017/10/12 11:32:16 [error] 1172#1172: *3635 FastCGI sent in stderr: "PHP message: Error: Class 'Drupal\rules\Logger\RulesLog' not found in /var/www/careers/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 266 #0 /var/www/careers/web/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'logger.ruleslog')
#1 /var/www/careers/web/core/lib/Drupal/Component/DependencyInjection/Container.php(480): Drupal\Component\DependencyInjection\Container->get('logger.ruleslog', 1)
#2 /var/www/careers/web/core/lib/Drupal/Component/DependencyInjection/Container.php(319): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#3 /var/www/careers/web/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'logger.factory')
#4 /var/www/careers/web/core/lib/Drupal.php(698): Drupal\Component\DependencyInjection\Container->get('logger.factory')

I already tried drush cr, also I restarted the web server. The whole site gives WSOD, until I uninstall Rules. I am using Drupal 8.4.

Comments

Sinan Erdem created an issue. See original summary.

Sinan Erdem’s picture

The problem happened to be related with config_views module. Related: #2916069: Rules module wont work after enabling this module.

When I try to enable Rules, after enabling Config Views, The site becomes unreachable.

Joachim Namyslo’s picture

me too

TR’s picture

Status: Active » Postponed (maintainer needs more info)

@Joachim Namyslo: me too? Does that mean that you also have the config_views enabled?

Joachim Namyslo’s picture

That means that my site is affected of this bug too, The error message comes up when I turn rules on and there is no way to get round of it. So at this point rules could not be used anymore in drupal 8.4.4 in my opinion. I am not sure, what you mean by config_views. I just enabled rules and rules ui and tried to configure a show message to users at bootstrap before the bug comes up.

Switched to thunder meanwhile and doped rules from the configuration. Maybe I try to reproduce this with vanilla drupal and rules and come back with some more info

TR’s picture

@Joachim Namyslo:

"me too", lacking any other information, implies that you are seeing the exact same error, with the exact same conditions to reproduce under the exact same versions and for the exact same reasons.

That's clearly not the case.

The original poster concluded the error message was due to a conflict with the config_views module. You don't know what that module is, so it seems you have a different problem which results in a similar error. (Is it the SAME error? Including the part about FastCGI?).

Because you don't supply any information about how to reproduce the error, it is impossible to help you.

Be aware that Rules 8.x-3.x is used on over 6000 sites. That couldn't be the case if Rules was just plain broken as you imply. Because it works for most people there's obviously something going on that's specific to your site, and without additional information we can't even say if this is a Rules problem or just a problem with your site.

Specifically, class 'Drupal\rules\Logger\RulesLog' clearly exists in the Rules codebase - you can easily confirm that yourself. So if it's not found that indicates a problem with the class loading on your site. Are you using Nginx? Are you using some other module that overrides the logger? Etc. It's incumbent upon you to specify the conditions under which this error message can be reproduced.

Without further information, I'm inclined to close this as "Cannot reproduce".

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.

drupalguy854’s picture

Have you found a fix to this? I am getting the exact same error. Not sure why rules has anything to do with config_views.

Joachim Namyslo’s picture

I uninstalled the side before i could provide more information about how to reproduce this issue.

Could you tell us what you did to get this error?

Something like

1. activate rules
2. do ...
3. do ,,,
4. got the error message.

If you have such kind of information we can reopen the issue