Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#7 | realname-fix-user-view-warning-2782711-4-D7.patch | 494 bytes | Kevin P Davison |
#3 | realname-fix-user-view-warning-2782711-3-D7.patch | 461 bytes | dbouman |
Comments
Comment #2
dbouman CreditAttribution: dbouman at Mindgrub Technologies commentedComment #3
dbouman CreditAttribution: dbouman at Mindgrub Technologies commentedHere is a fix for this warning.
Comment #4
hass CreditAttribution: hass commentedComment #5
mrtndlmt CreditAttribution: mrtndlmt commentedWorks for me! Please commit!
Comment #6
jerrac CreditAttribution: jerrac commentedPatch #3 does not work for me. Using drush make:
This is the output:
Comment #7
Kevin P Davison CreditAttribution: Kevin P Davison at Hook 42 for UCSF Center for HIV Information commentedHi, and related to https://www.drupal.org/node/2776891 I'd like to re-roll this patch to solve the notice and this warning. Look ok? Thanks!
Comment #8
giupenni CreditAttribution: giupenni commented#7 works for me!
Comment #9
herved CreditAttribution: herved commented#7 seems to work for me as well. Thanks @Kevin Davison
Comment #10
dkolarevic CreditAttribution: dkolarevic at Proultima commentedI can confirm solution #7 works in my case too!
Comment #11
nelsongrin CreditAttribution: nelsongrin at European Commission and European Union Institutions, Agencies and Bodies for European Commission and European Union Institutions, Agencies and Bodies commentedThe solution provided by @Kevin in comment #7 works for me as well.
Comment #12
nelsongrin CreditAttribution: nelsongrin at European Commission and European Union Institutions, Agencies and Bodies for European Commission and European Union Institutions, Agencies and Bodies commentedComment #13
nelsongrin CreditAttribution: nelsongrin at European Commission and European Union Institutions, Agencies and Bodies for European Commission and European Union Institutions, Agencies and Bodies commentedComment #14
sergiuteaca CreditAttribution: sergiuteaca at FFW commented+1 to RTBC