Active
Project:
Context Rules
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2013 at 07:44 UTC
Updated:
6 Aug 2013 at 14:22 UTC
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
Comment #1
swati.karande commentedThese warnings are not coming to my local instance.
Can you let us know the steps to replicate this issue?
Thanks.
Comment #2
Paul B commentedSorry, 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?