Title: get_avatar() function generating wrong email md5 hash.
Last modified: August 20, 2016

---

# get_avatar() function generating wrong email md5 hash.

 *  Resolved [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/)
 * Hello,
 * I have been trying rather unsuccessfully to get Gravatars to work on my blog.
   The built in get_avatar() feature seems to be generating an incorrect md5 hash;
   so isn’t retrieving the correct Gravatars. For example, the md5 for my email 
   address is; 08cab17d20de8d790a0fdaad3146da98; but WP generates: cfc6467002ed3982abbe8d6e5481c03c.
   I added he WP_Gravatar plugin which worked fine, displaying my Gravatar but it’s
   hard to incorporate the plugin into my template design so I have ditched the 
   plugin.
 * Site: [http://myblog-online.co.uk/](http://myblog-online.co.uk/)
 * This is what I have in my functions.php file to generate the comments loop!
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * I have show Avatars enabled in Settings > Discussion, maximum rating set to “
   X” and mystery man set as my default avatar. I have the correct email address(
   for the Gravitar) set as my email address in General Settings, and have even 
   checked the comments themselves for the correct email address. I know my Gravatar
   works fine as it displays on other sites, just not my site.
 * I guess that I am missing something here…
 * TIA,
    Jason

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293562)
 * I can’t edit the original post so here’s the Pastebin link:
 * [http://pastebin.com/LsHbEqYe](http://pastebin.com/LsHbEqYe)
 *  Thread Starter [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293679)
 * Anyone? This would be nice to be able to get this working, kinda pointless having
   avatars if everyone is a mystery man…
 * I’m guessing no-one has come across this before? which means it’s probably related
   to my install (fully patched upto 3.2.1) with the following plugins, version 
   numbers in brackets:
 * Akismet (2.53)
    Analytics WP (1.02) Auto Keywords & Description Generator (1.3.2)
   Configurable Tag Cloud (5.2) Fancybox for WordPress (2.75) FLV Embed (1.21) Google
   XML Sitemaps (3.25) Last Modified (1.1.1) Share & Follow (1.54.1) Strictly Auto
   Tags (2.5) WP Twitter Sidebar (2.2)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293680)
 * Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the Twenty Eleven theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 *  Thread Starter [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293682)
 * I have tried the above, deactivated all plugin’s and there is still not gravatars;
   just the mystery man, same issue with incorrect md5 generation. I had previously
   switched to the default theme Twenty Eleven but tried again after resetting the
   plugin folder. So I guess there is some issue with the core install files.
 * I’m running PHP Version 5.2.17 if that’s relevant?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293683)
 * Well – put it this way – this is the first time I’ve heard/seen this kind of 
   issue. So, whatever it is, it is specific to your site or set up.
 *  Thread Starter [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293684)
 * OK, thanks for the responses; I’ll set up a new install on a subdomain and see
   if that fixes the problem, I can normally resolve most issues but this one has
   me baffled; time to do some diagnostics to resolve this issue, if it’s server
   based, there isn’t much I can do; I don’t think my host will be happy with me
   hacking their apache/php conf files.
 *  Thread Starter [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293685)
 * It must be a server issue as it did exactly the same on a brand new WordPress
   install I set up; kinda annoying but I’ll have to live with it, I’ll just use
   a generated image to make the comments look prettier!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘get_avatar() function generating wrong email md5 hash.’ is closed to 
new replies.

## Tags

 * [get_avatar](https://wordpress.org/support/topic-tag/get_avatar/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [myownalias](https://wordpress.org/support/users/myownalias/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/get_avatar-function-generating-wrong-email-md5-hash/#post-2293685)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
