ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: radu81 on November 30, 2015, 08:05:14 am

Title: Gravatar not updated
Post by: radu81 on November 30, 2015, 08:05:14 am
Hello,
I changed my avatar on GRAVATAR a month ago, but I noticed that was not updated on this site. Is this normal or it's a bug?
Usually when I change my gravatar it gets updated on every site/forum I use my gravatar.
Title: Re: Gravatar not updated
Post by: emanuele on November 30, 2015, 08:41:52 am
That's pretty interesting.
The current url used here is:
http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094;s=125&r=pg
picked directly from gravatar.com servers.

Funny thing is that using this url:
https://en.gravatar.com/site/check/
to checked your email address (always gravatar.com, so no problem of email theft ;)), the url generated is:
https://s.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094?s=80

At first I thought it was a problem of the different domain (www. instead of s.), but testing it out a bit, changing any parameter of the url, the gravatar shows the new one, while using exactly that url shows the "old" one!
And it's not even a problem of browser's cache, because I even used Konqueror (KDE browser) that I usually open just the first time I install the operating system and I never, ever used to browse this forum. Pasting the url http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094;s=125&r=pg it returns the "old" avatar.

That's pretty funny indeed...

Now I have to go, but this evening I'll do some more tests.
Title: Re: Gravatar not updated
Post by: Spuds on December 01, 2015, 08:13:18 am
Hummm.....

http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094;s=125&r=pg is the old one and
http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094?s=125&r=pg is the new one

Can it be as simple as changing that first ; to a ?
Title: Re: Gravatar not updated
Post by: radu81 on January 02, 2016, 06:00:34 pm
My gravatar changed here, I didn't do anything to my account here or on gravatar. Was this solved with the latest release of elkarte?
Title: Re: Gravatar not updated
Post by: Spuds on January 03, 2016, 09:45:56 am
Not that I know of ... I think what I'm seeing is still your old one.  

What I see on the site is what I put in that first link but I think what your current one is the second link. 
Title: Re: Gravatar not updated
Post by: Burke Knight on January 03, 2016, 10:18:29 am
They appear to be the same image, just different size.

http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094;s=125&r=pg

According to get image URL for me, that one is his currently displayed avatar, for me, as well.
Title: Re: Gravatar not updated
Post by: emanuele on January 03, 2016, 10:52:15 am
Quote from: Spuds – http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094;s=125&r=pg is the old one and
http://www.gravatar.com/avatar/3649c4260adb157300c67a59d99ac094?s=125&r=pg is the new one

Can it be as simple as changing that first ; to a ?
I just realized now that actually, our url is not passing the size & rating as parameters, but it "just" an url because the first semi-colon should really be a question mark...
Just not to forget about https://github.com/elkarte/Elkarte/issues/2342
Title: Re: Gravatar not updated
Post by: radu81 on January 03, 2016, 11:11:09 am
The avatar I see now is the latest one (the same image that Burke Knight linked).
Title: Re: Gravatar not updated
Post by: emanuele on January 03, 2016, 11:35:48 am
Ok, let's try with Spuds suggestion. O:-)
Title: Re: Gravatar not updated
Post by: Lou on January 03, 2016, 10:17:17 pm
OK ... my turn now.  :)  My Gravatar will not update either on a Elkarte site I set up for someone else. However, the Gravatar did update for here. Other site is on Version 1.0.6.

If you have a simple code insert to fix this please post it and I will give it a try.

Below are the installed addons. Plus I think I have every avatar from here installed also.

Thanks ...
Title: Re: Gravatar not updated
Post by: emanuele on January 04, 2016, 02:30:22 am
In Load.php, if you search for:
Code: [Select]
';s=
you should find two instances that have to be replaced with:
Code: [Select]
'?s=
At least if my memory serves me right.
Title: Re: Gravatar not updated
Post by: Lou on January 04, 2016, 05:34:17 pm
Quote from: emanuele – In Load.php, if you search for:
Code: [Select]
';s=
you should find two instances that have to be replaced with:
Code: [Select]
'?s=
At least if my memory serves me right.
Your memory has served you well.  :)    Those two changes instantly fixed the non-updating Gravatar.

Thanks!
Title: Re: Gravatar not updated
Post by: emanuele on January 04, 2016, 05:44:27 pm
Cool!
I can remember things at about half a day of distance! :P