- Issue created by @Frank.dev
- 🇪🇸Spain intersarsi
In my case, I have Drupal core 10.2.6 and Rules module 8.x-3.0-alpha8 , and when it try to update de Drupal core to 10.3.0 version I get the following error:
The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "user_role" plugin does not exist. Valid plugin IDs for Drupal\rules\Core\ConditionManager are: rules_node_is_promoted, rules_entity_is_of_type, rules_node_is_of_type, rules_entity_has_field, rules_user_has_role, rules_data_is_empty, rules_data_comparison, rules_path_has_alias, rules_entity_field_access, rules_node_is_published, rules_path_alias_exists, rules_list_contains, rules_node_is_sticky, rules_text_comparison, rules_list_count_is, rules_user_is_blocked, rules_entity_is_of_bundle, rules_entity_is_new in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
- 🇩🇪Germany Frank.dev
I also get this error message - concerning the missing plugin user_role.
Also seeing this with a fresh install of the Rules module with zero rules added.
Uninstalling the Rules module fixes the issue.
- 🇦🇺Australia elc
The rules module replaces the core ConditionManager with one that only knows about
\Drupal\Core\Condition\Annotation\Condition
, while core 10.3 uses\Drupal\Core\Condition\Attribute\Condition
.@see 📌 Convert Condition plugin discovery to attributes Fixed
End result is that Rules is unable to locate any of the core conditions that have been converted.
- Status changed to Closed: duplicate
5 months ago 3:28pm 21 June 2024 - 🇦🇺Australia elc
Duplicate of 📌 [10.3] Update ConditionManager to support PHP Attributes Active
- 🇬🇷Greece tarasiadis
I have the same issue after update from 10.2.7 to 10.3.0
So the solution is to uninstall rules? - 🇻🇳Vietnam simon23
I have the error going from 10.2.7 to 10.30.0 is there a fix for this?
The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "user_role" plugin does not exist. Valid plugin IDs for Drupal\rules\Core\ConditionManager are: rules_data_comparison, rules_data_is_empty, rules_list_contains, rules_list_count_is, rules_entity_has_field, rules_entity_is_new, rules_entity_is_of_bundle, rules_entity_is_of_type, rules_node_is_of_type, rules_node_is_promoted, rules_node_is_published, rules_node_is_sticky, rules_path_alias_exists, rules_path_has_alias, rules_text_comparison, rules_entity_field_access, rules_user_has_role, rules_user_is_blocked in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
- 🇬🇷Greece tarasiadis
I think it is urgent as this upgrade crash a lot of websites. Is it possible to disable rules? I think no as it is required by other modules too. So wait for patch or new version?
- 🇩🇰Denmark ressa Copenhagen
@simon23 and @tarasiadis: This issue is closed as a duplicate, see 📌 [10.3] Update ConditionManager to support PHP Attributes Active instead.