Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I started with a site which has a field collection in it with a few fields. When you save the node, the data does not save. When you click 'add new item' (it allows multiple items), it also doesn't save the data, it just creates a new set of empty fields and has a lone 'remove' button where the first one should have gone.
When I tried to delete the collection entirely and recreate it with the same fields, I had the same issue. However, when I created a totally new field collection with totally new fields, it did work (so the module is working correctly).
Comments
Comment #1
supriyarajgopal CreditAttribution: supriyarajgopal commentedHello,
Please update this patch https://www.drupal.org/files/issues/field_collection-fields-not-saving-1549364-52.patch
Works for me & I borrowed this from this thread.
Hope this helps.
Regards,
Supriya Rajgopal
Comment #2
Arbalest89 CreditAttribution: Arbalest89 commentedThis work for me too!
Thanks
Comment #3
BertrandL CreditAttribution: BertrandL commentedThis works for me too on Field collection version = "7.x-1.0-beta12"
Comment #4
Udhaya Kumar CreditAttribution: Udhaya Kumar commentedThis works for me too for the version "7.x-1.0-beta12".
Thanks.
Comment #5
calefilm CreditAttribution: calefilm commentedThank you for posting the patch @supriyarajgopal. As stated above, the patch works for my version "7.x-1.0-beta12". Don't understand why my new collections weren't saving while my old ones saved fine... but applying the patch forced even the new collections to save properly.
Comment #6
wescleyteixeira CreditAttribution: wescleyteixeira as a volunteer commentedThanks @supriyarajgopal the path worked for me too. I 'm using version "7.x-1.0-beta12".