Forums

Profile Pictures not appearing until you refresh the browser (8 posts)

  1. Zero20two
    Member
    Posted 1 year ago #

    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!

  2. Zero20two
    Member
    Posted 1 year ago #

    That is the one. Thanks!

  3. 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?

  4. Zero20two
    Member
    Posted 1 year ago #

    Sounds good! Thanks!

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

  5. karenwei
    Member
    Posted 1 year ago #

    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?

  6. mygreg
    Member
    Posted 1 year ago #

    you'd must use the "Avatars" extension
    it is better

  7. swoopster
    Member
    Posted 1 year ago #

    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) . "'");

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags