Undefined index: #markup in template_preprocess_user_profile_item() (line 211 of /var/www/dev/theme-drupal_7.redesign.devdrupal.org/htdocs/modules/user/user.pages.inc).

#1 unidentified_index-1851278-1.patch724 bytesjasonsavino
PASSED: [[SimpleTest]]: [MySQL] 39,570 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


jasonsavino’s picture

724 bytes
PASSED: [[SimpleTest]]: [MySQL] 39,570 pass(es). View

attaching possible patch

blicarea’s picture

Thank you -- that got rid of the error above!

jasonsavino’s picture

Status: Active » Needs review
StefSabi’s picture

Great was helpful

Max2505’s picture

Issue summary: View changes


Running on version 7.28, when I applied the patch, I'm getting 2 different errors when browsing through my users or try to edit one of them:

Notice: Undefined variable: value in include() (line 26 of xxx/modules/user/user-profile-item.tpl.php).
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 4210 of xxx/includes/form.inc).

Any idea?

dcam’s picture

Version: 7.17 » 7.x-dev
Issue tags: +Needs steps to reproduce, +Needs tests

Can anyone who has experienced this issue comment on whether or not this occurs in Drupal 8?

Also, we'll need to know how to reproduce this error in order to review the patch.