Fatal error when "rules" module is missing

Created on 21 July 2023, about 1 year ago
Updated 13 September 2023, 11 months ago

Problem/Motivation

The condition plugins have a hard dependency on the rules module, which is not listed as a module dependency, which triggers the following error:

Error: Class 'Drupal\rules\Core\RulesConditionBase' not found in include() (line 26 of modules/contrib/user_email_verification/src/Plugin/Condition/UserEmailVerificationUserEmailVerified.php).

Steps to reproduce

  1. Make sure rules is not installed
  2. Visit a block configuration page
  3. Observe

Proposed resolution

Undefine condition plugins if rules is not installed.

Remaining tasks

  • Validated the proposed solution
  • Reviews

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇹Italy plach Venezia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024