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.
This takes place on Drupal 7.18:
- Fresh install of druapal
- Using drush, installed field_collection (beta-5) including dependencies (Entity version 7.x-1.0)
- Created new content type with field collection
- New field collection item with only text fields
- Cannot save node due to:
Fatal error: Call to a member function save() on a non-object in freshdrupal/sites/all/modules/field_collection/field_collection.module on line 912
This shouldn't happen with a fresh install of Drupal. Thoughts?
Comments
Comment #1
jpschroeder CreditAttribution: jpschroeder commentedUpdate: The bug seems intermittent depending on what kinds of fields are in the content type, some content types dont throw the error.
Comment #2
Hroudtwolf CreditAttribution: Hroudtwolf commentedSame bug for me.
My field collection only contains a "file" field and a "long text" field.
Comment #3
Liam McDermott CreditAttribution: Liam McDermott commentedWe're experiencing this issue too. This is just a guess, but it seems to have cropped up since Entity hit version 1.0. Could that be related?
I'm going to do more investigation today.
Comment #4
Liam McDermott CreditAttribution: Liam McDermott commentedActually turns out it was a problem in a hook_form_alter() I had on the field collection form. Not sure if that was the cause for other people here, but trying to add things to a field collection form can really mess things up! :)
Comment #5
jmuzz CreditAttribution: jmuzz commentedI've never seen this happen. Perhaps it has been fixed by more recent versions.
Can anybody verify this behavior? If so please provide steps to reproduce.
Comment #6
jmuzz CreditAttribution: jmuzz commented