Hi,

I have a field collection with a date and a text field in it. Upon save, all i get is a blank page, and the data is not saved.
any ideas?

CommentFileSizeAuthor
#8 Field collection blank page.png34.18 KBsi.shy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikman’s picture

This is also an issue when having a field collection with a standard image field and a text field (multiline).

jmuzz’s picture

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

I made a basic content type that has a field collection with a date field and text field. I was able to create and save a node of that type without errors / white screen. Can you provide more specific steps to reproduce this?

Red Sky Tom’s picture

Having the same issue. Began when I last updated the Field Collection module. In my case I have a field collection within a field collection and with the update the edit form now hides the blank items, which is great but I can not save and get the White Screen. Also note I cannot uncheck the Hide Blank Items box which is now available and I get the following error.

Cannot add index field_co_coaches_name_revision_id to table field_data_field_co_coaches_name: index already exists

All issues seems to have been related to an entity reference and updating the Entity module has made them disappear.

wipeout_dude’s picture

I had problems after upgrading to beta 7 (https://drupal.org/node/2229857) and had to roll back to Beta4..

In my case there seems to be an issue saving nodes of content types with more than one field collection field..

@Red Sky Tom - Did you upgrade to a dev version of Entity module? I have the latest release version of entity module and had the issues mentioned above..

Red Sky Tom’s picture

Hey wipeout_dude,

I upgraded to the latest release, not the DEV and other than that went in to each field collection and saved.

jmuzz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I understand from the comments that it should be working in the latest versions. Please reopen if this is incorrect.

wipeout_dude’s picture

Status: Closed (works as designed) » Active

Hi Jmuzz,
Still have the issue in beta8 where content types with more than one field collection can't be saved and just a blank white page is shown..

The error I get if I enable errors is

Fatal error: __clone method called on non-object in /var/www/sites/all/modules/contrib/field_collection/field_collection.module on line 939

si.shy’s picture

Here is the solution that works for me:
1) Edit the content type of the page.
2) Go to the tab "Manage display".
3) Click on the horizontal tab "Full Content"
4) On the column "Format" change the status "hidden".

Error_418_’s picture

The workaround provided by si.shy in #8 does work, however I had to recreate at least one page in order for it to begin displaying. This is a less-than-optimal solution.

jmuzz’s picture

Status: Active » Postponed (maintainer needs more info)

None of the comments indicate that this is still a problem in the most recent dev version.

If it's only a problem in older versions this issue can be closed.

Error_418_’s picture

So I thought I bumped into this again after patching to Beta 12, but it was only affecting one of my pages.
Turns out I had three fields that attempted to link to content that no longer existed (they were link fields put in by a previous dev team). Turns out, if I leave them empty the content displays, if I put anything in those fields the page WSODs.
I’m leaving this note here in case si.shy or other users may potentially have the same issue happening.

Error_418_’s picture

Further update on this, I'm now able to recreate the issue reliably if I have more than six content fields. That is having seven field_content collections will render a WSOD.

Not sure if that helps. If there's someplace I can look to gather more data let me know and I'll cause the error deliberately to pass over the data.