Support Forum

Gravatars not working :c(

27 Answers

New Answer

MP Mr Papa
Mr Papa
Member

okay, thanks… probably Saturday before I have a chance…

MP Mr Papa
Mr Papa
Member

okay, right now, the gravatar cache plugin is getting in the way…earlier I asked you to deactivate it…  have you done that?  please make sure its deactivated…

are those real/valid email addresses for those test users?

RI Rene Iversen
Rene Iversen
Member

Hello

I was 100% sure plugin was deactivated, but somehow it wasn’t.

I have now deactivated the plugin.

 

Gravatars, did not work before i installed Gravatar cache either.

 

Yes the e-mail adresses are real adresses, and the user/e-mails have been activated and are workig on other sites.

Regards

 René

MP Mr Papa
Mr Papa
Member

and those email addresses are actually registered at gravatar.com?

asking because gravatar.com is replying back that its not a valid gravatar email address…  this, now after the gravatar cache was disabled…

RI Rene Iversen
Rene Iversen
Member

Yes Thoose adresses are registered at Gravatar, And they are working on my WordPress site.

MP Mr Papa
Mr Papa
Member

can you give me a link on your site where any of those gravatars in that test topic are displaying correctly since you said they show up in wp fine???

RI Rene Iversen
Rene Iversen
Member

Hi there

I was not using posts / comments in my wordpress site.

but i have now created a page with comments and posts.

 

http://www.cannabisforum.dk/archives/468

 

Else you can try to login with user : gravatar2/gravatar2 and see the profile for user.

 

/René

 

 

MP Mr Papa
Mr Papa
Member

well, I cannot explain what is going on… both the WP avatar and the SP avatar are sending the exact same url for the gravatar… The difference is the WP code is simply outputting the url as the image… we cannot do that because of the priority scheme and must see if the gravatar is valid first… If I just enter the verification gravatar url directly in the browser it returns the expected answer… however, if I use the wp functions for this or any standard php code for checking the headers, the return answer is an error condition…

so something on your server is blocking the headers check… are you running mod_security? or any other purported security plugin or mechanisms (such as bad behavior)??

might be time to talk with your host and find out why:

$headers = wp_get_http_headers($url);

generates an empty response on your server… of course, url is the url of your gravatar… but something is blocking or messing with those header checks… and we know it works because tens of thousands of folks are using gravatars fine…

MP Mr Papa
Mr Papa
Member

So, I assume you resolved this with your host????  I see your forum now displaying gravatars properly…

RI Rene Iversen
Rene Iversen
Member

Hello.

Sorry no problem is not yet resolved, but for now i am using WP avatars in simple press.

I am waiting for my host to get back to me why i cant get http_header from gravatar.com, i can grab http headers fine from other sites.

<?php
$url = ‘http://0.gravatar.com’;
print_r(wp_get_http_headers($url, 1));
?>

Gives me no result

 

<?php
$url = ‘http://www.google.com’;
print_r(wp_get_http_headers($url, 1));
?>

 

Gives me fine Http header feedback.

 

//René

 

I will get back to you as soon i have further updates.

MP Mr Papa
Mr Papa
Member

yup. exactly what I was seeing…  and the wp avatars explains why I was seeing them now…

might just be mod_security dorking again if you are running it…

please let us know what they say…

RI Rene Iversen
Rene Iversen
Member

Issue has been resolved.

 

Problem was that my Hosting provider was blocking outgoing http traffic.

 

after they opened http traffic towards gravatar domains, problem was resolved.

 

Thanks Again for all your assistance during this troubleshooting.

 

Regards

 René