WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] User avatars and gravatars broken link (6 posts)

  1. ProfC
    Member
    Posted 1 year ago #

    Hi, I have this problem: many users of my social network have lost their Avatar and Gravatar. Instead of the original image I can see a broken link icon. Besides this, If I try to upload a new image I cannot do it, It gives me back a black frame. The Avatar directory is the default one, wp-content/uploads/avatars. I can see it if I right-click on the image box, with a sub-directory for each user, I guess, named 1, 2 etc. Should I change this directory and where?

    I don’t know why it did happen.

    My configuration is
    Buddypress 1.7
    WP 3.5.1

    and many other buddypress-related plug-ins.

    Many thanks,
    Gabriele

  2. @mercime
    Volunteer Moderator
    Posted 1 year ago #

    Upgrade to BP 1.7.1

  3. ProfC
    Member
    Posted 1 year ago #

    I did it, but it's the same, avatars and gravatar still broken.
    Please, help me.
    G

  4. @mercime
    Volunteer Moderator
    Posted 1 year ago #

    @profc are you on a multisite/network installation?
    - If so, is BuddyPress installed in main site or subsite?
    - If not, then is your WP/BP installed in domain root e.g. example.com or in subdirectory e.g. example.com/community ?

  5. ProfC
    Member
    Posted 1 year ago #

    All my web site in in a subdomain

    http://www.maindomain.net/subdomain

    but it is not a multisite installation

    What can I do?

  6. ProfC
    Member
    Posted 1 year ago #

    I think I finally found the solution!

    I have installed on my website User Access Manager.
    The plugin stopped access to the uploads folder, wherein there are avatars and group-avatars folder.

    I opened file .htaccess inside uploads folder and I added these exceptions:

    RewriteCond $1 !^avatars/
    RewriteCond $1 !^group-avatars/

    before this condition

    RewriteRule (.*) /mysite/index.php?uamfiletype=attachment&uamgetfile=$1 [L]

Topic Closed

This topic has been closed to new replies.

About this Topic