Skip to:

Question about installing Buddypress on a subdomain of multisite

  • Profile photo of omosha


    Hey all,

    I’m wanting to have Buddypress installed on a subdomain of my main WP multisite so that I can use a specific Buddypress compatible theme for all of Buddypress. How can this be accomplished most easily? I’ve got a tab on my main site (Community) that points to the subdomain just fine. The only problem is that when I use the Buddypress functions, it points back to the main site i.e, instead of the subdomain i.e.

    Any thoughts on how to use Buddypress with its own theme rather than include it as part of the main site and therefore the main theme?

    Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Profile photo of @mercime


    Profile photo of omosha


    Thank you so much, Mercime! I’ve got most of it all installed with the exception of a few hiccups.

    I had a difficult time with the avatars even before this modification. I’m getting this error code
    ‘/home/integral/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 479’
    When I go into bp-core-avatars.php on line 479 I see this as the definition:
    ‘function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) {

    // If passed an object, assume $user->user_id
    if ( is_object( $user ) )
    $id = $user->user_id;

    // If passed a number, assume it was a $user_id
    else if ( is_numeric( $user ) )
    $id = $user;

    // If passed a string and that string returns a user, get the $id
    else if ( is_string( $user ) && ( $user_by_email = get_user_by_email( $user ) ) )
    $id = $user_by_email->ID;

    // If somehow $id hasn’t been assigned, return the result of get_avatar
    if ( empty( $id ) )
    return !empty( $avatar ) ? $avatar : $default;

    // Let BuddyPress handle the fetching of the avatar
    $bp_avatar = bp_core_fetch_avatar( array( ‘item_id’ => $id, ‘width’ => $size, ‘height’ => $size, ‘alt’ => $alt ) );

    // If BuddyPress found an avatar, use it. If not, use the result of get_avatar
    return ( !$bp_avatar ) ? $avatar : $bp_avatar;

    I’ve tried installing a bp-custom.php file within the plugin directory so that it would not be deleted when updating Buddypress but it produces an error everywhere on the site.
    Here is what I tried to add as the bp-custom.php file for reference:
    ‘define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/1/files’ );
    define( ‘BP_AVATAR_URL’, ‘hxxp://’ );’

    As I look at the code, I’m wondering if this is because there is no hxxp:// directory. Do I need to add this or is the path incorrect? Also, I’ve not seen hxxp before, is this a typo?

    Thanks for the support on this, it’s rather minor in the grand scheme of things, but I’m wondering if it will become a bigger problem as the community grows.


    Profile photo of Roger Coathup
    Roger Coathup


    hxxp is just a placeholder to stop everything being turned into links in the post. You should use http

    p.s. I’m not sure you need to make the avatar path changes if this is a new install (rather than moving an existing BP install from the root blog). Perhaps @r-a-y can confirm this.

    Profile photo of omosha


    I agree that I probably don’t need to add the avatar path since it’s a new install, I’m wondering why I’m getting the ‘/home/integral/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 479’ error code?

    Thanks for the reply.

    Profile photo of r-a-y


    Roger is correct.
    “hxxp” is a placeholder to prevent hyperlinking to an example domain.

    If you’re working with a new install, you will not need the avatar code listed in the tutorial.
    Try removing the avatar code and see if the error appears again.

    Profile photo of omosha


    Yeah, I’m still getting the error message
    ‘Warning: Missing argument 5 for bp_core_fetch_avatar_filter() in /home/integral/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 479’

    and I’ve removed step 3 from

    Have you ever run into this or have any idea how to fix?

    Thanks again for checking it out

    Profile photo of Jae


    I too am getting the error but only in a few of the BuddyPress themes. I get it in the BP Nicey, the BP default, & the Fishbook theme. I would love to have it fixed especially with the Nicey theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Question about installing Buddypress on a subdomain of multisite’ is closed to new replies.
Skip to toolbar