Hi. I really need your help. I'm just an amateur and I really have no coding knowledge, so please try to explain to me in "stupid" terms.
I've installed the "Features" module among with "featured news feature" module. After enabling the modules, I've noticed that "body" field is suddenly empty or missing in all nodes or views. It's like the field was erased of all data after the installation of these modules. (www.rudan.ro is my D7 based site, if you want to see what exactly am I talking about). I've disabled the modules - same problem. I've uninstalled them - no change. I'm really stuck here. I've tried everything, in filed settings I get the warning that the field contains data and cannot be changed but still nothing displays. (I've verified display settings in content types too, everything looks OK in my amateur eyes, I don't know what to do next. Please tell me I haven't just lost every article on the site, I have no backup, that's just how stupid I am (I couldn't get the "Backup/Migrate" module to work)... HELP
Comments
Comment #1
rdy4ever commentedI forgot to mention, even when editing an existing article, the body section is empty...
Comment #2
hnln commentedI seem to have a similar problem. I haven't figured out yet what causes it, except that it happens during feature updates. In my case the data of several fields of a content type (not all) is lost completely (both field_data_field_XX and field_revision_field_XX are empty). I noticed that fields that are shared with other content types don't get emptied (unless the content type is the only one that has data in that table).
It looks like the content type get's disconnected from drupal and then reconnected and fields reinstated (readded). This is just a theory though, but it would explain why the data is gone. Furthermore all the content types on that site are 100% featured, so created on another site and featured and then activated on the target site.
Comment #3
rdy4ever commentedI couldn't break it either. I gave up eventually an restored my nodes from Google cache. I'll never install features again, that's for sure.
Comment #4
hefox commentedThere has been core problems where node type get deleted accidentally involving the core hook_node_info, so this isn't necessirly a features bug other than it's using hook_node_info, but I thought that got fixed for d7.
If you have backups, can you reproduce an issue and add a debugging statement to node_type_delete to see if it's being called and when?
Comment #5
hefox commented#895014: All fields of a node type are lost on module disable is the core issue. Is your drupal versions outdated?
Comment #6
hefox commentedMarking #1463916: drush feature-revert silently emptying field tables as duplicate.
Is this a core bug?
Comment #7
hefox commentedComment #8
hefox commented#1302228: field_has_data() returns inconsistent results – possible data loss
Comment #9
mpotter commentedNot sure there is anything Features can do about this. Lowering it to Major and marking as Postponed to prevent it from blocking a Features release. But feel free to change the status and post a patch if you think of something Features can do to help with this.
Comment #10
coreyp_1 commentedI can confirm that I just experienced this on our prod server, but not dev. I will see if I can reliably duplicate the issue.
Comment #11
arrubiu commentedSubscribe
Comment #12
bhauff commentedI can confirm that I have been seeing this happen when adding additional fields to an existing feature, and then deploying that updated feature. The field tables are all cleared (maybe dropped and recreated?). I am using Features 1.0. So far the patch, 1302228-52-d7.patch, found at http://drupal.org/node/1302228 seems to be fixing the problem with some preliminary testing. This patch has been incorporated in to D7.15, so this may be fixed for people on the newest release.
Comment #13
hefox commentedMarking this as fixed as the core issue is fixed in stable version
Comment #15
coconnor commentedFWIW - I just ran into this issue on our site using the newest version of Features. Same behavior as described above: after you hit admin/structure/features, the body on a Featurized CT disappears on view/edit & doesn't appear in the page array, even though things look normal in our DB. Drove us nuts for a while.
In our case, one of our features had an "Exported field base: 'body'" with the 'translatable' variable set to zero. Changing this to 1 rectified the issue.