Skip to:
Content
Pages
Categories
Search
Top
Bottom

can’t change avatars

  • Profile photo of kippnkatie
    kippnkatie
    Member

    @kippnkatie

    I am curious is anyone has run across being able to upload an image for an avatar but then not being able to see it to crop it and not having it applied. The images are upload ok, they are on the server but after that is as if buddy press can’t access them. any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Profile photo of Suzette
    Suzette
    Participant

    @suzettebc

    I had the same problem but finally got it solved. I had to do 2 things:

    1 – go into “settings>miscellaneous” and fill in the “full URL path to files” so it will be example http://yourdomainname/wp-content/uploads

    2 – requires editing the php coding in the file bp-core-avatars.php in BuddyPress. You can find this file by going into “plugins>editor”. On the right side, there is a drop down box labelled “select plug-in to edit”. Change this default selection from Asimet to BuddyPress and press “select”. The list of files beneath will change. Scroll down to “buddypress/bp-core/bp-core-avatars.php” and select it.
    The changes need to be down on lines 389 & 390, it’s down near the end of the page. (I used copy/paste in MS Frontpage editor to find the line number close to “function bp_core_avatar_upload_path() {“) You’ll be replacing the 2 lines with 3 lines. ** Use the WordPress editor to make the changes to copy/paste the lines once you find them **

    Replace:
    if ( !$path = get_option( ‘upload_path’ ) )
    $path = WP_CONTENT_DIR . ‘/uploads’;

    With:
    if ( !$path = get_option( ‘upload_path’ ) )
    $path = WP_CONTENT_DIR . ‘/uploads’;
    else $path = ABSPATH . $path;

    See this post for the solution https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/avatar-cropping-after-upload-image-and-cropper-dont-appear-fails/

    Profile photo of kippnkatie
    kippnkatie
    Member

    @kippnkatie

    Well the good news is that this fixed by avatar problem but now I have another one.
    I am getting this error on my blog site
    Warning: Division by zero in /home/bethelbc/bethelbaptistkalamazoo.com/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 390

    Profile photo of Vendetta
    Vendetta
    Participant

    @vendetta66

    Yeah I can’t upload an avatar here … been trying all day.

    Just keeps saying there was an error handling the image. It works fine on my site with the same image, not sure what that’s all about.

    V

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘can’t change avatars’ is closed to new replies.
Skip to toolbar