SANGKRIT

Why after recent update of BuddyPress, u…

Why after recent update of BuddyPress, user-avatars are not loading on subsites?

One thought on “Why after recent update of BuddyPress, u…”

  1. The BuddyPress has a problem now a days that its user-avatars are not showing on subsites so to resolve that you do require to replace the following code by editing BuddyPress plugin’s buddypress/bp-core/bp-core-avatars.php: –
    $upload_dir['baseurl'] = str_replace( get_blog_option( $current_blog->blog_id, ‘home’ ) , get_blog_option( BP_ROOT_BLOG, ‘home’ ), $upload_dir['baseurl'] );
    into:
    $upload_dir['baseurl'] = get_blog_option( BP_ROOT_BLOG, ‘home’ ) . ‘/wp-content/uploads/’;
    Doing this shall fix up the problem of showing user-avatars on sub sites.

Leave a Reply