Hi!

I've some problems with field_collections using widget-type "embedded".

I have 3 different field_collections with each title and text field in one content type. all of them are set to widget-type embedded. If I create a new content, fill out the fields and press save, i get a white page.

If I use the other widget-type option, everything is working fine.

thx for the help!

Comments

visuaLatte’s picture

I've had the same problem. Google Chrome gives me a HTTP 500 Internal Server Error

Also, using the widget type "Embedded", I cannot add a second item (by clicking the "add another item" button).

Nathan

fago’s picture

Title: Not working with "embedded" widget-type » "embedded" widget-type might ran into loops

Yes, the embedded widget may ran into loops. While I initially thought, we should just disallow embedding field-collections into itself, that doesn't suffice as it doesn't handle recurisions triggered via multiple field-collections.

Maybe, we should check for such recursions when configuring the widget, or the field in general?

daniela basualdo’s picture

i do not embed field-collections into itself. i have 3 independent field-collection in one content type.
in the field-collection i have e title and text field. the field-collections can be added unlimited.

today i installed the newest dev-version (2011-Aug-18). it's still not working. I get the error:
Fatal error: Call to undefined method FieldCollectionItemEntity

i've seen that this is aleady an issue http://drupal.org/node/1187010.

AtomicTangerine’s picture

just putting in a small two cents here, I use field collections as a quasi webform, with field collections embedded with field collections, 3 deep. I love it, and it allows my users to "design" a form, but limit their "powers" so to speak, because the form still has a specific structure that I design. So I just want to say that I hope you don't change field collections to not be able to embed one in another. Please leave the ability to embed Field Collections in Field Collections, it's wonderful. Thanks for the module again!

daniela basualdo’s picture

so i still have the problem that field collection with widget type "embedded" is not working.
is there any solution?

visuaLatte’s picture

This is still an issue in Beta2, which I just installed. I disabled and uninstalled the module, then reinstalled it. If I attempt to save a node that has a Field Collection with the "embedded" widget type, I get a 500 Server Error (using Google Chrome, again). If I use the "hidden" widget type, I can successfully add collections after initially saving the node.

Nathan

jmuzz’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I tried this on the lastest dev. I made a node type with 3 field collections each with a text field using the embedded widget. I was able to save a node and edit it while using the embedded widget.

Please reopen if I am wrong, but I believe this has been fixed.