Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 1.2.4 – Custom BP_AVATAR_URL change

  • @r-a-y

    Keymaster

    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!

Viewing 16 replies - 1 through 16 (of 16 total)
  • @mercime

    Participant

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

    @jesperpopma

    Participant

    @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!

    @r-a-y

    Keymaster

    @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.

    @russnm

    Participant

    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

    @jesperpopma

    Participant

    @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!

    @laneallen

    Member

    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’ );

    @anointed

    Participant

    I believe the following ticket may have something to do with these issues:
    https://core.trac.wordpress.org/ticket/13483

    @andij

    Member

    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 : )

    @leroy12

    Participant

    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 . ‘/wp-content/uploads’ );
    define( ‘BP_AVATAR_UPLOAD_PATH’, $_SERVER . ‘/wp-content/uploads’);

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

    Hope it helps

    @gotamil

    Member

    “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.

    @3dperuna

    Participant

    I had success changing this to:

    define( ‘BP_AVATAR_URL’, ‘http://’ . $_SERVER . ‘/wp-content/blogs.dir/1/files’ );
    define( ‘BP_AVATAR_UPLOAD_PATH’, $_SERVER . ‘/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!

    @gotamil

    Member

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

    @kipprsnak1

    Member

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

    @kipprsnak1

    Member

    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.

    @bennadler

    Member

    I tried using the bp-custom.php file in the wp-content/plugins/ folder, but I could not get it to work.

    Could anyone upload an example version of this that I could tinker with to fit my needs?

    My problem is I am running WordPress 3.0 RC1, with WPMU and Buddypress installed. Avatars work on the main blog, but not on sub-blogs, so I need to figure this out. For the sub-blogs only the Mystery Man appears.

    @peterverkooijen

    Participant

    @bennadler, I think that issue was fixed here.

    Probably old news to you by now…

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘BP 1.2.4 – Custom BP_AVATAR_URL change’ is closed to new replies.
Skip to toolbar