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...
Comments
Comment #1
ivan zugec commentedI can confirm this issue. Once I updated to features 1.0-rc1, I lost all my created context.
Comment #2
jonathan_hunt commentedDitto 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.
Comment #3
mpotter commentedYep, this is critical. Will try to come up with a patch quickly. There were several ctools-based changes in rc1.
Comment #4
mpotter commentedTry 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.
Comment #5
BarisW commentedDang, spent all day debugging this. Having the same issue. Please roll a new release soon!
Comment #6
schultetwin commentedI can confirm that updating to 7.x-1.x-dev fixes the issue.
Comment #7
blackice2999 commentedHi,
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
Comment #8
danillonunes commentedHere 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.
Comment #9.0
(not verified) commentedUpdated issue summary.