When install and enable module, you see page how create in views with author name or email, you have errors.

Warning: array_filter() expects parameter 1 to be array, string given in EncryptedFieldsUserOperation->userFieldDecode() (line 357 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc).
Warning: Invalid argument supplied for foreach() in EncryptedFieldsUserOperation->userFieldDecode() (line 358 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc).
Warning: array_filter() expects parameter 1 to be array, string given in EncryptedFieldsUserOperation->userFieldDecode() (line 357 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc).
Warning: Invalid argument supplied for foreach() in EncryptedFieldsUserOperation->userFieldDecode() (line 358 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc).
Warning: array_filter() expects parameter 1 to be array, string given in EncryptedFieldsUserOperation->userFieldDecode() (line 357 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc).
Warning: Invalid argument supplied for foreach() in EncryptedFieldsUserOperation->userFieldDecode() (line 358 of /home/alex/www/drupal/sites/all/modules/encrypted_fields_user/encrypted_fields_user_class.inc). 

I think this error appears because we don't have values in variables. You mast set default value for options in settings form.

Comments

alex_optim created an issue. See original summary.

alex_optim’s picture

Assigned: alex_optim » Unassigned
alex_optim’s picture

Status: Active » Needs review
StatusFileSize
new489 bytes

Fixed problem with default value for variables. Create patch with two default fields for encrypted. This fields are user name and user email.

  • pifagor committed ec90d2c on 7.x-1.x authored by alex_optim
    Issue #2830718 by alex_optim: Warning: array_filter() expects parameter...
pifagor’s picture

Status: Needs review » Fixed
pifagor’s picture

Status: Fixed » Closed (fixed)
pifagor’s picture