WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] get_avatar() function generating wrong email md5 hash. (8 posts)

  1. myownalias
    Member
    Posted 2 years ago #

    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/

    This is what I have in my functions.php file to generate the comments loop!

    [Code moderated as per the Forum Rules. Please use the pastebin]

    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

  2. myownalias
    Member
    Posted 2 years ago #

    I can't edit the original post so here's the Pastebin link:

    http://pastebin.com/LsHbEqYe

  3. myownalias
    Member
    Posted 2 years ago #

    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)

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    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 by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  5. myownalias
    Member
    Posted 2 years ago #

    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?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    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.

  7. myownalias
    Member
    Posted 2 years ago #

    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.

  8. myownalias
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic