Closed (won't fix)
Project:
Features
Version:
7.x-1.x-dev
Component:
Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2012 at 06:47 UTC
Updated:
12 Oct 2012 at 15:08 UTC
When installing from drush.
Undefined index: fields field.info.inc:596 [13.26 sec, 75.4 MB]
Invalid argument supplied for foreach() field.info.inc:596 [13.26 sec, 75.4 MB]
$info['fields'] is NULL.
If I remove "field_info_cache_clear();" from "field_features_rebuild" it will work.
It seems to me that #1574716: Avoid unnecessary cache rebuilds when creating and updating fields did this, and the patch in #1669720: Regression in features_flush_caches() doesnt fix this either.
Comments
Comment #1
mpotter commentedCan you explain a bit more about exactly what you were doing? Was this a fresh install of Features on a new site? Or were you updating the version on a site with existing features? When upgrading a module it's common to need to clear the Drupal cache (drush cc all) for it to work since drush does not automatically clear cache when downloading a new version of any module. Need a way to reproduce this error to do anything with it.
Comment #2
anonWhen installing with drush, the error will be shown.
When using the default profile, this works because it implements node_add_body_field().
After some more research on this, I now dont think this is a feature bug. Its more a Drupal core bug.
See #1400256: Tests for: $info['fields'], not always set?
Comment #3
alippai commentedRelated issue: #1802074: Undefined index: fields field.info.inc:596
Comment #4
mpotter commentedClosing this one then. If somebody still thinks this is a Features-specific issue and has a patch to deal with it, feel free to re-open.