After updating from beta6 to rc1 and running a feature update my contexts disappeared. I check what was new in my features and I have this modification (in diff format):

 /*
  * Implements hook_ctools_plugin_api().
  */
 function sk_articles_ctools_plugin_api() {
-  list($module, $api) = func_get_args();
-  if ($module == "context" && $api == "context") {
-    return array("version" => "3");
-  }
-  list($module, $api) = func_get_args();
-  if ($module == "strongarm" && $api == "strongarm") {
-    return array("version" => "1");
-  }
+  return array("version" => "1");
 }

This look weird for me, I suppose context still need API 3 but we now always returning api 1.

I put this one as critical: it totally breaks your website and if you run feature update two times you will lose all your context informations. And you know, not everybody have backup or use git...

CommentFileSizeAuthor
#8 issue-1490436.patch2.09 KBdanillonunes

Comments

ivan zugec’s picture

I can confirm this issue. Once I updated to features 1.0-rc1, I lost all my created context.

jonathan_hunt’s picture

Ditto for confirmation. I hand-edited my *.features.inc file hook_ctools_plugin_api() back to the way it was and things are ok.

The commit at http://drupalcode.org/project/features.git/commitdiff/ef2f805876ff37b3e3... has changed the output of the api versioning but I don't know enough about ctools to recommend a fix.

mpotter’s picture

Yep, this is critical. Will try to come up with a patch quickly. There were several ctools-based changes in rc1.

mpotter’s picture

Status: Active » Fixed

Try the new 1.x-dev version. I reverted the previous patch from #1432264: Changes to hook_views_api cause Views plugins to be undefined and committed the version by erza-g earlier in that thread instead. Context now works for me and Views should still be handled as a special case until this gets resolved properly at the ctools level.

BarisW’s picture

Dang, spent all day debugging this. Having the same issue. Please roll a new release soon!

schultetwin’s picture

I can confirm that updating to 7.x-1.x-dev fixes the issue.

blackice2999’s picture

Hi,

thangs the current dev branch works fine but please make fast a new release... the current version can kill a running development site and its hard to find this bug...

thanks
Dennis

danillonunes’s picture

StatusFileSize
new2.09 KB

Here is the patch with the reverted commit @mpotter had said at #4. You can use it with Drush Make, until a new Features release is launched.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.