The access callback in context_rules_rules_event_info is giving me warnings when configuring checkout rules in Commerce:

call_user_func() expects parameter 1 to be a valid callback, function 'context_rules_rules_access' not found or invalid function name in RulesPluginUI::getOptions()

Comments

swati.karande’s picture

These warnings are not coming to my local instance.
Can you let us know the steps to replicate this issue?

Thanks.

Paul B’s picture

Sorry, the warning is in admin/config/workflow/rules, it has nothing to do with Commerce.

To replicate, create a Context, disable 'bypass rules access control' and visit the rules configuration page. The page gives the warning once for each Context I believe, at least in PHP 5.4.

Why does context_rules_rules_event_info() specify context_rules_rules_access as access callback anyway, if that function does not exist?