We have more than 30 fields in ten different field collections of fields in a content type.
Have to create an Index on the node type.

After about 25 fields have been added from different field collections, if we add a new field collection from the the Add Related Fields drop down, a previously selected Field Collection disappears.

We have tried this on different installations, and it fails every time.

Is there a solution?

Comments

vivdrupal’s picture

Title: Search Api - added fields disappeared from Fileds list » Search Api - added fields disappeared from Fields list
drunken monkey’s picture

Huh. That's really strange, yes … Did you have any of the fields of the field collection that vanished marked as "Indexed" already when it vanished? Normally, those should never vanish, so that could be a workaround: after adding the related fields of a certain field collection, mark all desired fields of that collection as "Indexed" before proceeding to add other related fields.

If you press "Save" it is expected behavior that those related fields for which you didn't mark any properties as "Indexed" will vanish again – maybe suboptimal, UX-wise, but currently how it works. (Was changed already in D8, though.) Was that maybe the problem?

drunken monkey’s picture

Status: Active » Postponed (maintainer needs more info)
jedihe’s picture

Just a note on a similar problem that I was facing: adding a related field and clicking "Add fields" was doing nothing - the field list that loaded afterwards was the same as before, no trace of the new field. The problem for me is that this site has a pretty big list already being displayed (654 rows), which means more than 1000 input vars for PHP; the solution was to increase max_input_vars to 10000 in php.ini (only in the local/development server, this doesn't affect a production site unless the list is being updated there).

Hope it helps.

pivanov’s picture

@jedihe That helped! However, I still wouldn't see the changes reflected on the form, until a I cleared all cache.

drunken monkey’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

OK, then seems this is fixed?
Thanks for reporting back, in any case!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gaëlg’s picture

Yes, I had the same problems of index fields suddenly disappearing, and max_input_vars was the probable cause, because now it seems to work well.