I am getting the following warning when I visit the user view page.

Warning: Invalid argument supplied for foreach() in field_view_mode_settings() (line 631 of modules/field/field.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbouman created an issue. See original summary.

dbouman’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
dbouman’s picture

hass’s picture

Status: Active » Needs work
Issue tags: +Need tests
mrtndlmt’s picture

Works for me! Please commit!

jerrac’s picture

Patch #3 does not work for me. Using drush make:

projects[realname][subdir] = "contrib"
projects[realname][version] = "1.x-dev"
projects[realname][patch][] = "https://www.drupal.org/files/issues/realname-undefined-view-mode-2776891-2-D7.patch"
projects[realname][patch][] = "https://www.drupal.org/files/issues/realname-fix-user-view-warning-2782711-3-D7.patch"

This is the output:

realname-7.x-1.x-dev downloaded.                                                                                                                                                                        [ok]
realname patched with realname-undefined-view-mode-2776891-2-D7.patch.                                                                                                                                  [ok]
Unable to patch realname with realname-fix-user-view-warning-2782711-3-D7.patch.                                                                                                                        [error]
Generated PATCHES.txt file for realname
Kevin P Davison’s picture

giupenni’s picture

#7 works for me!

herved’s picture

#7 seems to work for me as well. Thanks @Kevin Davison

dkolarevic’s picture

I can confirm solution #7 works in my case too!

nelsongrin’s picture

The solution provided by @Kevin in comment #7 works for me as well.

nelsongrin’s picture

Status: Needs work » Reviewed & tested by the community
sergiuteaca’s picture

+1 to RTBC