Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 1.2.4 – Custom BP_AVATAR_URL change

  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    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)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

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

    Avatar of jesperpopma
    Jesper
    Participant

    @jesperpopma

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

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

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

    Avatar of russnm
    russnm
    Participant

    @russnm

    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

    Avatar of jesperpopma
    Jesper
    Participant

    @jesperpopma

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

    Avatar of laneallen
    laneallen
    Member

    @laneallen

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

    Avatar of Anointed
    Anointed
    Participant

    @anointed

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

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

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

    Avatar of Leroy12
    Leroy12
    Participant

    @leroy12

    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

    Avatar of GoTamil
    GoTamil
    Member

    @gotamil

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

    Avatar of 3dperuna
    3dperuna
    Member

    @3dperuna

    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!

    Avatar of GoTamil
    GoTamil
    Member

    @gotamil

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

    Avatar of kipprsnak1
    kipprsnak1
    Member

    @kipprsnak1

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

    Avatar of kipprsnak1
    kipprsnak1
    Member

    @kipprsnak1

    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.

    Avatar of bennadler
    BenNadler
    Member

    @bennadler

    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.

    Avatar of Peterverkooijen
    peterverkooijen
    Participant

    @peterverkooijen

    @bennadler, I think that issue was fixed here.

    Probably old news to you by now…

Viewing 16 replies - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.