Error when editing team doc

khm's picture
khm
Tue, 11/03/2015 - 11:13
#1
Error when editing team doc

When editing team document and saving I get the following error

Warning: array_filter() expects parameter 1 to be array, string given in field_collection_item_is_empty() (line 591 of /sites/all/modules/contrib/field_collection/field_collection.module).

Any simple fix?

Thanks

phuonght's picture
phuonght
Fri, 11/06/2015 - 05:59

This error comes from Field Collection version 7.x-1.0 beta, you could take a look at https://www.drupal.org/node/2599248, there is an enclosed fix patch or you can fix by yourself:

Go to modules/contrib/field_collection,open file field_collection.moduleline 591

replace

( $all_boolean = $instances && !(bool) array_filter('_field_collection_field_is_not_boolean');) 

with

$all_boolean = $instances && !(bool) array_filter($instances, '_field_collection_field_is_not_boolean');
Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.