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

jpschroeder’s picture

Update: The bug seems intermittent depending on what kinds of fields are in the content type, some content types dont throw the error.

Hroudtwolf’s picture

Same bug for me.
My field collection only contains a "file" field and a "long text" field.

Liam McDermott’s picture

We'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.

Liam McDermott’s picture

Actually 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! :)

jmuzz’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

I'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.

jmuzz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)