Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

BP 1.2.4 – Custom BP_AVATAR_URL change (17 posts)

Started 2 years ago by: r-a-y

  • Profile picture of r-a-y r-a-y said 2 years ago:

    Just wanted to let people know that if you’re using BP in a subblog in WPMU and you defined a custom BP_AVATAR_URL, you’ll need to add the string “/files” to the end of your BP_AVATAR_URL constant.

    eg. this is what I had before:
    define( 'BP_AVATAR_URL', 'http://example.com' );

    I changed this to:
    define( 'BP_AVATAR_URL', 'http://example.com/files' );

    This will bring back your avatars in BP 1.2.4!

  • Profile picture of @mercime @mercime said 2 years ago:

    Thank you @r-a-y. “bookmarked”

  • Profile picture of jesperpopma Jesper said 2 years ago:

    @r-a-y

    I’m using BuddyPress on a subdirectory:

    http://nijmegeneet.nl/club/

    After upgrading to 1.2.4 my avatars are gone!

    I’m not using a custom BP_AVATAR_URL

    Any ideas how to fix this? Thanks!

  • Profile picture of r-a-y r-a-y said 2 years ago:

    @jesperpopma

    Your avatar URLs appear to be missing the leading “http:”. I think I remember reading about this bug before.

    You can temporarily fix this by defining your BP_CUSTOM_URL in wp-config.php to:
    define( 'BP_AVATAR_URL', 'http://nijmegeneet.nl/club/wp-content/uploads' );

    See if that works.

  • Profile picture of russnm russnm said 2 years ago:

    I just upgraded to 1.2.4 and discovered that all of the custom avatars in the BP (top) menu pick under “Blogs” have been replaced by the default “mystery-man” avatar. Is this the problem you’re addressing? If so, in what file do I make the change (i.e., by adding “/files” to the URL)? The other problem after the upload is that the “Blogs” page is now empty (except for 2 blogs added after the upgrade), when there is supposed to be over 50 shown. Nice! Now what? ;-) Any advice would be most appreciated! The site in question: http://singlewriter.com

  • Profile picture of jesperpopma Jesper said 2 years ago:

    @r-a-y

    I have added your line:
    define( 'BP_AVATAR_URL', 'http:///nijmegeneet.nl/club/wp-content/uploads' );
    to my bp-custom.php

    That works fine. Thanks for helping me out!

  • Profile picture of laneallen laneallen said 2 years ago:

    I was still getting errors on uploading avatars on my installation (BP1.2.4, WP3.0b2 Network) using BP in a sub blog. Kept giving me an error (asking if I had write permissions) and tried a few other things, but I finally got it to work by disabling the two lines in bp-custom.php:
    // define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/2/files’ );
    // define( ‘BP_AVATAR_URL’, ‘hxxp://example.com/files’ );

  • Profile picture of Anointed Anointed said 2 years ago:

    I believe the following ticket may have something to do with these issues:

    http://core.trac.wordpress.org/ticket/13483

  • Profile picture of andij andij said 2 years ago:

    I just had this missing avatar issue after upgrading to 1.2.4 from 1.2.3. My BP site is a standalone installation and not a subblog of WPMU.

    I resolved this by creating a bp-custom.php file in /public_html/wp-content/plugins/ and adding the following:

    define( ‘BP_AVATAR_URL’, ‘http://prorc.co.uk/wp-content/uploads’ );

    This thread helped me solve this issue nice and quickly, thanks : )

  • Profile picture of Leroy12 Leroy12 said 2 years ago:

    I have a similar environment to Andij: BuddyPress on top of Wordpress (3.0b2), no subblogs, upgrading from 1.2.3 to 1.2.4.
    Still customizing the BP_AVATAR_URL was not enough for me. I also had to customize BP_AVATAR_UPLOAD_PATH.

    In the end, I have created the bp-custom.php file and added the two following lines (I have installed WP / BP at the root of my server):

    define( ‘BP_AVATAR_URL’, ‘http://’ . $_SERVER['HTTP_HOST'] . ‘/wp-content/uploads’ );
    define( ‘BP_AVATAR_UPLOAD_PATH’, $_SERVER['DOCUMENT_ROOT'] . ‘/wp-content/uploads’);

    I hope the need for those two lines will be removed in a next release of BP…

    Hope it helps

  • Profile picture of GoTamil GoTamil said 1 year, 12 months ago:

    “I just upgraded to 1.2.4 and discovered that all of the custom avatars in the BP (top) menu pick under “Blogs” have been replaced by the default “mystery-man” avatar.”

    Having the same issue here. Using define( ‘BP_AVATAR_URL’, ‘http://example.com/files’ ); does not help.

  • Profile picture of 3dperuna 3dperuna said 1 year, 12 months ago:

    I had success changing this to:

    define( ‘BP_AVATAR_URL’, ‘http://’ . $_SERVER['HTTP_HOST'] . ‘/wp-content/blogs.dir/1/files’ );
    define( ‘BP_AVATAR_UPLOAD_PATH’, $_SERVER['DOCUMENT_ROOT'] . ‘/wp-content/blogs.dir/1/files’);

    All of my previously loaded avatars came back. However, I only have one blog, so it’s OK…. still needs to be fixed in the next release.

    Incidentally, it fixed all of my upload avatar issues, too!

  • Profile picture of GoTamil GoTamil said 1 year, 12 months ago:

    @3dperuna this one need to modify under which file?

  • I have tried using the bp-custom.php file and it hasn’t solved my problem. If I get it wrong, it some how messes up all the images on my site, including the ones that make no references to buddypress. I’ve tried all the solutions listed here. When I follow the URL to just the image, it says it can’t find it or I don’t have permissions. I’ve checked permissions and they should let me see the files there…

    Any other solutions anyone has found???

  • Just to follow up – somewhere along the line my wp-content dir had its permissions changed. That was the issue. I’d checked the individual image files, the files dir, etc, but not wp-content. That fixed it all up for me.