This has stopped working, but from memory, I thought that in this version, only the conditions that have been selected from the listbox and had settings made were added to the list below the conditions and reactions listboxes?

On my site there is a listbox and *all* the conditions are shown below it, even when they don't have any settings.

When I hover over a condition in the list, the remove link is displayed, but doesn't appear to do anything if clicked.

I can make settings (which don't clear by clicking 'remove'), and set reactions, but if I click save, then select export from the list for that context, the export does not contain any conditions or reactions.

$context->conditions = array(); and $context->reactions = array();

$context = new stdClass;
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'blah';
$context->description = ' blah';
$context->tag = 'blah';
$context->conditions = array();
$context->reactions = array();
$context->condition_mode = 0;

// Translatables
// Included for use with string extractors like potx.
t(' blah');
t('blah');

I have spent more than a day disabling caching, script and css aggregation, disabling various modules etc.

I thought it was a javascript or css issue, but now I'm not sure and I don't know how to troubleshoot further.

Can anyone help please? I'll search d.o for more troubleshooting ideas, but at the moment I'm stumped.

*Any* assistance gratefully received!

Comments

vegardjo’s picture

I'm suddenly experiencing the same thing. Context did work fine, then this happened when creating my second context. Will troubleshoot some and update here..

(using 7.x-3.0-beta1)

vegardjo’s picture

That was quick, was playing with a world clock which needed the edge module http://drupal.org/project/edge, which again broke context..

tebb’s picture

Nice one Vegard.

I'm also using the Edge module for the Clock module and disabling Edge and Clock make the Context interface work again.

So is this a Context or an Edge issue?

vegardjo’s picture

Don't know, but guessing Edge? I posted an issue there which might shed a light on it: #1167216: Edge breaks Context - Context module doesn't save the definition that you create

BarisW’s picture

Seems that we're having the same issue when assigning block in regions via Context. This worked before, but now the $context->reactions is an empty array in the features export. Could this be related? We are not using edge btw.

Edit: my issue is probably #1297776: Blocks missing from reactions when context layouts is enabled.