Error when editing webform/contact info/content

khm's picture
khm
Fri, 11/06/2015 - 03:20
#1
Error when editing webform/contact info/content

When editing contact information using content type webform multiple instances of the following error occurs

  • 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).

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.