Needs work
Project:
Context PHP
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2012 at 15:15 UTC
Updated:
6 Aug 2015 at 08:32 UTC
Jump to comment: Most recent
My context PHP reaction code doesn't fire.
After struggling with code, and after a look at other similar modules, i soved using function:
context_enabled_contexts
in place of:
context_active_contexts
in contextphp_reaction_php.inc file.
Please, can anyone verify if this issue is a bug fix?
Comments
Comment #1
Matt Habermehl commentedYes, I had the same problem. Your suggested fix worked for me.
Comment #2
lahode commentedWrong. If you user context_enabled_contexts, it will fire all the time, which seems logic.
The problem lies in contextphp.module
Replace the contextphp_init function by:
Cheers
Comment #3
zmove commentedBefore the patch, context PHP never triggered.
Now the conditions triggers.
However, I have a php notice :
which seems pretty logical as I don't see where the $group variable is defined.
Any patches to propose ?
Comment #4
zmove commented