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.
Hi, I just enabled the module and so far everything works fine except one thing. I'm using profile2 module and on the profile add/edit page I get error message:
Notice: Undefined index: picture in avatar_selection_form_user_profile_form_alter() (line 266.... in avatar_selection.module
I checked this line and there is check:
if (is_array($form['picture'])) {
....
in this case $form['picture'] does not exist
simple fix - change this line to :
if (isset($form['picture']) && is_array($form['picture'])) {
Comments
Comment #1
stella CreditAttribution: stella commentedPatch committed, with a small alteration, thanks!
Comment #3
warmth CreditAttribution: warmth commentedAny news?