Support Forum

ashow "not working" troubleshooting Gravatar rating problem.

52 Answers

New Answer

MP Mr Papa
Mr Papa
Member

nope. no where else… we build the link and ship it off to
gravatar… assuming we get valid response back, we use it… if no
response, then go to next avatar priority…

not sure about your link though… we dont build them with
0.gravatar.com… maybe test code? we just use www.gravatar.com…

RI Rene Iversen
Rene Iversen
Member

Yes I have added 0.gravatar as test, when i had http_header issue.-

 

I have now changed back to http://www.gravatar.com but still same result.

 

If i change Gravatar Rating from X to G the gravatar will work. on any rating setting 1-4, but it will not show other than G rating even though link end on r=X and there is a valid avatar :S

 

Any troubleshooting sugestions would be appriciated.

 

I have made no manual changes to database, and only manual file change has been done in. sp-common-view-functions.php And this file has been restored from downloaded installation zip file, with same result :s

 

So right now the forum is standard setup, with no own modification to it.

 

/René

 

MP Mr Papa
Mr Papa
Member

try changing the X to x… we have made a similar change in our code… shouldnt matter, but worth a try…

all the ratings have been changed to lowercase in next version vs uppercase… in the select statement…

RI Rene Iversen
Rene Iversen
Member

No unfortunatly. that gives same result.

 

The e-mail i am using to test with is : gravatar2@exnet.dk  *account is activated and working at gravatar.com

 

/René

 

 

RI Rene Iversen
Rene Iversen
Member

If i remove : d=404&  from the link, the gravatar will show but so will the default Gravatar for all other members who do not have a gravatar avatar.

 

Rating is also working when removing d=404& it will only show avatar rated correctly. even big and small letters (X/x PG/pg G/g)

 

Hope this helps.

/René

MP Mr Papa
Mr Papa
Member

yes, of course… the d=404 tells it to return the gravatar does not exist vice the default gravatar… so frankly, at bit of loss…

what is the response from gravatar.com… ashow() the value returned….

MP Mr Papa
Mr Papa
Member

yes, of course… the d=404 tells it to return the gravatar does not exist vice the default gravatar… so frankly, at bit of loss…

what is the response from gravatar.com… ashow() the value returned….

RI Rene Iversen
Rene Iversen
Member
Using : ashow($headers);

 

With d=404 this is return : 
Array ( [cache-control] => max-age=300 [content-type] => text/problem-with-post-edit-buttontml; charset=utf-8 [date] => Sat, 16 Feb 2013 19:55:32 GMT [expires] => Sat, 16 Feb 2013 20:00:32 GMT [last-modified] => Mon, 11 Feb 2013 19:51:01 GMT [server] => nginx [via] => 1.1 varnish [x-varnish] => 3531257088 3531246365 [content-length] => 13 [connection] => close )<br /><br />Without d=404 this is return : <br />
Array ( [access-control-allow-origin] => * [cache-control] => max-age=300 [content-disposition] => inline; filename="ac38eb1eaad0c2c07ef90a0d2264f893.jpg" [content-type] => image/jpeg [date] => Sat, 16 Feb 2013 19:58:34 GMT [expires] => Sat, 16 Feb 2013 20:03:34 GMT [last-modified] => Mon, 11 Feb 2013 19:51:01 GMT [server] => nginx [source-age] => 1848 [via] => 1.1 varnish [x-varnish] => 254322374 253216379 [content-length] => 3068 [connection] => close )
RI Rene Iversen
Rene Iversen
Member

Above this was inserted as code

 <br /><br />Without d=404 this is return : <br />

 

MP Mr Papa
Mr Papa
Member

well, that makes sense… first ones says no image (ie gravatar) was found… that is the gravatar response… the second one says, here is the image we found – and its the default gravatar…

so not sure why it works from url and not from your server… quite odd…

are you running varnish on your server? wouldnt think it would matter – just not that familiar with it…

RI Rene Iversen
Rene Iversen
Member

I dont think i run vanish, but it is a hosted server.

 

But the second one is not the default avatar, it is acctually my avatar.

 

filename="ac38eb1eaad0c2c07ef90a0d2264f893.jpg"


Where the default is 


filename="d92c92bc0664c52c080ef240cae00625.jpg"


So it does show my avatar when removing d-404

All gravatars with lowest rating (G) are also showing. even with d-404 

//René
MP Mr Papa
Mr Papa
Member

oh, when I put it in url, I got a mystery man… but doesnt matter… in first example, gravatar returned no image… so we have to move to the next avatar priority… and this is still a unique report so somewhat mystified…

RI Rene Iversen
Rene Iversen
Member

Problem is, that i cannot ask my users to rate their pictures as G, since the website is related to cannabis, and so are most the gravatars.-

 

Can i change so SP grabs gravatar same way as wordpress maybe ?

 

//René

MP Mr Papa
Mr Papa
Member

dont know what you mean…  we do grab them the same way…  except wp does not use 404 because they want the default gravatar…  you can use the wp avatars by making that the top priority… but again, users without a gravatar will get the default gravatar…

RI Rene Iversen
Rene Iversen
Member

How can it then be that gravatars with rating G work, when same gravatar changed to Rating PG/R/X stops working in simplespress.

Without making any changes to settings in forum, maxrating is still X.

 

/René