Error: Unknown named parameter $user in call_user_func_array()

Created on 15 July 2021, over 3 years ago
Updated 29 April 2023, over 1 year ago

I'm trying to create a Rule to send an email when a user account role is changed.

When using 'user' in the Data Selector for the rule I get the error:

Error: Unknown named parameter $user in call_user_func_array() (line 70 of modules/contrib/rules/src/Core/RulesConditionBase.php).

I believe this is the same issue as #3210303: PHP 8 introduced breaking change to call_user_func_array() however, even when I update all modules and core and then apply the patch I still get the same error.

I've included the Rule export as well.

💬 Support request
Status

Fixed

Version

3.0

Component

Rules Core

Created by

🇨🇦Canada dca123

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024