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.
screenshot: http://prntscr.com/20g5u
after upgrading advanced forum to the latest Jun-7-2011 one i got this gravatar error. but gravatars still work on the site.. not sure what the error means:
Notice: Undefined property: stdClass::$mail in _gravatar_get_account_user_picture() (line 181 of /home/xx/public_html/dev/sites/all/modules/gravatar/gravatar.module).
Comments
Comment #1
asrobsubscribe
Comment #2
Narno CreditAttribution: Narno commentedTrying to fix: http://drupal.org/commitlog/commit/4626/3de42d2489ea2fa15a807cfc5bbfce22...
Comment #3
Narno CreditAttribution: Narno commentedComment #4
patoshi CreditAttribution: patoshi commentedawesome.. fixed...
go into gravatar.module
change line 183:
183 return gravatar_get_gravatar($mail);
to this:
183 return gravatar_get_gravatar($account->mail);
the problem was the $mail wasnt updated updated to the object reference.
Comment #5
BenK CreditAttribution: BenK commentedThe solution posted in #4 worked for me. With the change, the module works great.
It's a very small fix... does someone want to post a proper patch so that we can get this officially committed? Or since the change only involves one line, can the module maintainer just make the fix without a patch?
--Ben
Comment #6
asrobIf it works, then it is ready to rtbc.
Comment #7
coloryan CreditAttribution: coloryan commentedAgreed, #4 fixed the error for me.
Comment #8
Narno CreditAttribution: Narno commented