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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | add_default_variable_in_install-2830718-3.patch | 489 bytes | alex_optim |
Comments
Comment #2
alex_optimComment #3
alex_optimFixed problem with default value for variables. Create patch with two default fields for encrypted. This fields are user name and user email.
Comment #5
pifagor commentedComment #6
pifagor commentedComment #7
pifagor commented