Support » Networking WordPress » One site in multisite shows incorrect gravatar next to admin comments

  • Resolved rxcknrxll


    I have a multisite with one site in particular that is showing the wrong gravatar for it’s user. A client of mine writes the blog while I handle the tech stuff, so we both have accounts on the website. When he comments on one of his own posts, his gravatar doesn’t up. Mine shows up instead.

    His gravatar works fine everywhere except the comment section. I’ve confirmed that his correct email address is associated with each of this comments, but my gravatar is still showing up in place of his.

    I’ve tried deleting my profile, but that doesn’t fix it. I’ve disabled all plugins, and I’ve reverted back to 2012 default theme. Nothing seems to fix it. For some reason, the site is pulling the gravatar for the network admin (me), not the gravatar associated with the person actually commenting.

    This isn’t happening on any other site in the network. It’s an isolated event as far as I’ve seen so far. Since I’ve ruled out the plugins and the theme, it’s gotta be WordPress files, correct? I’ve also recently optimized the db, so I’m honestly not sure what to check next. Any insight is much appreciated!

Viewing 15 replies - 1 through 15 (of 26 total)
  • Here’s a link to a post where this can be seen:

    Every comment by “Pagun” has my gravatar next to it, not Pagun’s. He’s using the right email address, and his gravatar works everywhere else on the website just fine. It just doesn’t work on the comment section.

    I’ve had three developers look at it. I’ve also had the theme developer Studiopress look at it. So far no one has any idea.

    Is this only happening on this site?

    I mean… if he leaves a comment anywhere else, does it happen?

    I don’t know if his gravatar works on other domains. I assume it does. I just know that it works on this website too…just not in the comment section. It’s really got me tripped up.

    I found one post that has his correct gravatar on one comment and my gravatar on one of this other comments:

    I checked both comments on that page, and he has the same email and name written on both of them. But for some reason a different gravatar shows up. What the heck could be causing this? I know it can’t be the theme files, because even when I switch themes, it keeps happening.

    That image shows two comments by the same author. The top one displays the correct gravatar, the bottom one displays my gravatar. Both have the same email address and same name, but they display different gravatars.

    I just noticed something new. The comments preceding 9/15/13 (just about when we migrated the website into multisite) all display the wrong gravatar. All comments made since then have all posted the correct gravatar.

    So it’s gotta be a db issue right? If so, what tables need repaired?

    The … ‘name’ is different.

    The top gravatar, the correct one, is pagun

    The bad one is Pagun.

    The gravatar is just associated with the email address, isn’t it? In any case, what could be causing all the gravatars preceding a certain date to display the wrong image?

    Yeah, but I’m trying to grab for oddities. Most people let auto-fill handle it, or if you’re logged IN, it should never ever change (or rather, if it changed, it would change for all posts). Example. At one point my display name here was Ipstenu. WHen I changed it to this, it changed for every post I ever made. WP is the same way.

    I know this. If you make a comment with one email, and then CHANGE the email in wp-admin, it doesn’t fix the gravatar… Caching somewhere in there.

    But the fact that the ‘right’ ID has lowercase name, and the ‘wrong’ does not makes me think something in there is to do with this.

    I noticed that too. I’ve tried changing the name, and it doesn’t fix it.

    Bottom line, every comment prior to Sept 15 shows the wrong gravatar. I’m starting to think more and more that it has to be a database issue. The wrong gravatar is being called for some reason. Is there a way to reboot this? A db search and replace or something like that?

    I even just installed WP User Avatar plugin, which basically takes gravatar out of the mix and associated a picture you upload directly to the website with that user.

    I uploaded the avatar directly to the website, and it STILL doesn’t show his avatar next to his comments.

    Again…everything on or before Sept 15 shows the wrong avatar. Everything since then shows the correct avatar.

    This has to be a database issue, right? But when I look in the db tables, I see the same thing I see in the dashboard. The correct name and email are being used, but for some reason it’s referencing a different avatar.

    Does anyone have any idea what could be causing this?

    Run a DB omptimize and repair.

    I don’t really know if it’s a DB issue. I’ve never seen it before.

    I don’t know if his gravatar works on other domains. I assume it does. I just know that it works on this website too…just not in the comment section. It’s really got me tripped up.

    Please DO test this on other domains.

    Also are you 100% sure he left those comments as the logged in user? I’m really serious about checking this, becuase if so, there is NO WAY WP would have pulled in a different capitalization. I think that’s going to be the key to solving this.

    Are you using a plugin with comments, like Jetpack comments or Disqus? Maybe his account there is what’s jacked…

    I’ve optimized and repaired db. That didn’t change anything. I’ve confirmed that the gravatar works just fine on other domains.

    We’re not using any comment system like Disqus, etc. Just native WP comments.

    I’ve noticed I can go in and simply repost the comments. Since I’m posting now, the right gravatar shows up. Very time consuming fix for this issue though.

    If I go to the admin section and change the email address of an existing comment, it continues displaying my gravatar. Then I change it back to the correct email address, and it just goes right on showing my gravatar no matter what.

    It seems the gravatar is assigned to the comment at some point, and after the gravatar is attached to a comment, it’s set in stone. Is there any way to “reboot” the gravatars? Can I cause the db to pull the gravatar again, hopefully pulling the correct image this time?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘One site in multisite shows incorrect gravatar next to admin comments’ is closed to new replies.