• Zero20two

    (@zero20two)


    As soon as someone posts, it updates the page okay but the profile picture is still the generic picture. We have to refresh the browser in order for the picture to show up. We are not using gravatar, we are using the “User Photo” plugin. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter Zero20two

    (@zero20two)

    That is the one. Thanks!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, I tagged this post so hopefully the dev sees it and can help you out.

    My first guess would be a caching problem. You running any cache plugins?

    Thread Starter Zero20two

    (@zero20two)

    Sounds good! Thanks!

    I don’t think we have cache plug-ins but I’ll do a little research…

    I’m running into the same issue. I just activated the plugin, cleared my cache, refreshed a few times and the profile photo still isn’t showing up in blog posts. It appears under my profile as being uploaded and ready. Are there any other tricks to get this working?

    you’d must use the “Avatars” extension
    it is better

    I too had this same problem and here is where it starts.
    I have a plugin called “Allow multiple accounts”, so what was happening is the User Photo plugin was searching by email and found the wrong account. I was posting as using my user account which has the same email address as the admin account of which does not have a photo.

    Here is the fix.
    line 103 of user-photo.php change

    $userid = (int)$wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_email = '" . mysql_escape_string($id_or_email) . "'");

    TO

    $userid = (int)$wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_login = '" . mysql_escape_string(get_the_author()) . "' and user_email = '" . mysql_escape_string($id_or_email) . "'");

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Profile Pictures not appearing until you refresh the browser’ is closed to new replies.