GRAVATAR – Icon is not showing issue
If you use GRAVATAR to show profile photos on your website you may run into several issues ending up not showing the photo correctly. Instead the general GRAVATAR Icon is shown:
The two most common reasons therefor are:
- you’ve rated your profile photo wrong
- you are using the email-hash with uppercase characters instead of consequently using lowercase characters
Solution:
Reason 1.:
Simply visit your GRAVATAR profile page and setup the rating by clicking on the rating-icon beside your picture (visible by hovering over the picture):
Reason 2.:
Ensure that you are using a MD5-hash which is completely setup with lowercase characters. Most of the online MD5-hash creators are providing the result string in uppercase (e.g. http://onlinemd5.com).
To get lowercases you will have to convert the string with a tool like Textwrangler (select the text in TextWrangler and go to the menu “Text / Change Case… / All lower case”). Or you use on of the online tools like http://convertcase.net.
This is – for sure – only the way if you are using static hashes – if you are doing the MD5-Hash creating automatically by using e. g. PHP in your website, then you will use
1
|
echo md5( strtolower ( trim( "MyEmailAddress@example.com " ) ) ); |
By using this PHP code you will ensure that the string you are hashing is free of spaces (Note: email addresses don’t contain spaces!) and the mail-address is converted to lowercase before you hash it. md5() will then generate a LOWERCASE hash for your passed string.