Support Forum

Gravatar/MyCred Not Working

JB Joe Bunting
Joe Bunting
Member

Hello! I notice I’m not the only person having this trouble, but I didn’t see any solutions on the board, so I’m making a new topic. Both Gravatar and MyCred simply stopped working right. Gravatar won’t show at all (though it shows just fine on the rest of the site), and the SimplePress MyCred plugin insists that the WordPress MyCred plugin isn’t installed – although it is.

We’ve cleared the cache. We tried it with all other plugins disabled. Nothing changed.

I can send an admin username/password to support, if that’s what’s needed! Thanks in advance for your help. 

25 Answers

New Answer

MP Mr Papa
Mr Papa
Member

starting with gravatars, can you provide more info?  currently, we have 1 user with an issue I believe but no issue found yet…  how about a link to example?? are  you getting no image or the next avatar priority??  are you using the gravatar cache plugin?

and no reports of mycred not working so need more info too… what version of mycred plugin?  and wp and our mycred plugin?

YS Yellow Swordfish
Yellow Swordfish
Member

I can replicate the problem with our MyCred plugin on the latest version of the core WP MyCred. Looks like a simple fix so if you like I can give you the edit to make or – we will issue an update pretty quickly.

On the gravatar issue – need the responses to the questions @mr-papa has posed but I would ask that if you ARE sing our gravatar cache plugin – could you deactivate it to see if the problem persists.

JB Joe Bunting
Joe Bunting
Member

Thanks for your quick reply! You folks are terrific.

Mr Papa said
starting with gravatars, can you provide more info?  currently, we have 1 user with an issue I believe but no issue found yet…  how about a link to example?? are  you getting no image or the next avatar priority??  are you using the gravatar cache plugin?

It defaults to the Simple-Press avatars, for some reason. Individuals can upload their own, of course, but we want Gravatars to pull automatically.

Gravatar works just fine on the rest of the site, which is baffling: 

 

And before you ask, yes, we disabled the caching plugin along with every other plugin aside from Simple-Press. Sadly, it didn’t fix it!

and no reports of mycred not working so need more info too… what version of mycred plugin?  and wp and our mycred plugin?  

*edit* Forgot to mention WordPress is version  4.6.1.

MyCred’s WP plugin is Version 1.7.3.

The Simple-Press myCred Extended Integration plugin is Version 1.0.6.

MyCred is registering points, but it won’t take any of our customizations (e.g. changing “mycred” to “quills,” since we’re a writing forum).

Also, the Simple-Press dashboard thinks the WordPress plugin isn’t installed:

Yellow Swordfish said
I can replicate the problem with our MyCred plugin on the latest version of the core WP MyCred. Looks like a simple fix so if you like I can give you the edit to make or – we will issue an update pretty quickly.

Fantastic! I’d love the simple fix for now; we’ll update as soon as that comes down the pike, too. 🙂

On the gravatar issue – need the responses to the questions @mr-papa has posed but I would ask that if you ARE sing our gravatar cache plugin – could you deactivate it to see if the problem persists.  

We don’t have your gravatar cache plugin at the moment; we didn’t have it before, when the gravatars were working fine. Do we need to install it?

Thanks again!

YS Yellow Swordfish
Yellow Swordfish
Member

Let’s get MyCred out of the way first. The file you need to edit is the maim plugin file – so – 
/wp-content/sp-resources/forum-plugins/mycred/sp-mycred-plugin.php

Line 47 – locate the function sp_mycred_show_alert()

Change the ‘if’ test to this:

if (! class_exists('myCRED_Core')) {

and you should be fine. Note that the link to the myCred hooks from the SP plugins list is also wrong but you don’t need that to work with things.

Now onto Gravatars. We really are going to need a link to a page where a gravatar doesn’t show. That doesn’t need to be as a member – we really, in the first instance, need to see what the source code is calling. If you want to keep this private then…

Please PM credentials to both myself and to ‘Mr Papa‘. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you.

MP Mr Papa
Mr Papa
Member

so you are seeing avatars?  just not the ones you want?  can you tell us your avatar priorities on forum – profiles – avatar options…

JB Joe Bunting
Joe Bunting
Member

I’ve PMd you both, and thanks so much!

In terms of the Avatar priority, it’s set to the following: 

Gravatar
Uploaded Avatar
Sp Default Avatars
Wp Avatars
Avatar Pool

(Also, I altered the code as requested, but nothing seems to have changed. I’m pretty sure that’s going to be user error. 🙂 )

Thanks for your help!

MP Mr Papa
Mr Papa
Member

as to the code, make sure you have proper quotes.. use the raw code button and copy direct…

gravatar cache plugin not required.. but can improve performance on your site… but please dont activate until we sort through the avatar issue first…

by going to simple press avatars, do you mean uploaded or default?

MP Mr Papa
Mr Papa
Member

okay, so I see both uploaded avatars and default avatars…  can you give me example of a user who you absolutely knows has a valid gravatar at gravatar.com but its not showing?

MP Mr Papa
Mr Papa
Member

so I am seeing calls to gravatar on topics… but its for getting the mystery man…

I added my email to this account which does have gravatar but it does not show… and oddly, when loading, it does query gravatar.com and my avatar is returned..  not sure why its not displayed or used though..

trying to investigate, but I am having difficulty using your wp admin – namely the simple press admin pages…  they are all throwing js errors from something called wpmUi… do you know what that is?  After loading an sp admin page, these errors prevent me from going any further in the admin…

JB Joe Bunting
Joe Bunting
Member

Mr Papa said
okay, so I see both uploaded avatars and default avatars…  can you give me example of a user who you absolutely knows has a valid gravatar at gravatar.com but its not showing?  

Yep! As I said, the gravatars WERE working, and then they just stopped. Here: 

trying to investigate, but I am having difficulty using your wp admin – namely the simple press admin pages…  they are all throwing js errors from something called wpmUi… do you know what that is?  After loading an sp admin page, these errors prevent me from going any further in the admin…  

Whoa, that’s weird! I’m not getting that error, or I would have mentioned it. I’m thinking we must have a plugin conflict, but I have no idea which one.

Also, as a reminder, we disabled all plugins before trying to figure out why Simple-Press was misbehaving, and it didn’t fix it. Hmmm. I’ll see if I can figure out which plugin is misbehaving!

Thanks for your help. It would be one thing if it hadn’t worked, but it’s worked for over a year, so I’m sure we can get it BACK to working again, somehow. 🙂

MP Mr Papa
Mr Papa
Member

understand… was just wanting to look at some stuff in our admin but couldnt..

could you take screenshot of the entire forum – profile – avatar options panel and post it here?   might be worth just updating that panel too (ie save it again)…

its odd how the http request (or at least some) go out to gravatar and return the avatar, but its not used…  not sure i will get the answer from the admin… next step might be to get access to the server so we can add some debug code and see why the gravatar is not displayed..

MP Mr Papa
Mr Papa
Member

Okay, I think I have a strong lead on what is going on here…  have managed to recreate so can get to the bottom of it…

more to come…

JB Joe Bunting
Joe Bunting
Member

could you take screenshot of the entire forum – profile – avatar options panel and post it here?   might be worth just updating that panel too (ie save it again)…

Here you go! 

I think I found the javascript error, by the way – I believe it was a plugin that needed an update. Fingers crossed!

Mr Papa said
Okay, I think I have a strong lead on what is going on here…  have managed to recreate so can get to the bottom of it…

more to come…  

I’ll be holding my breath! Thanks so much for all your work on this!

YS Yellow Swordfish
Yellow Swordfish
Member

We will get back to you later of course but it looks to be a change that WP made to their HTTP Request Library which has changed the response. We will get it fixed up probably today.