Why after recent update of BuddyPress, user-avatars are not loading on subsites?
You Might Also Like:
- How To Add Hacks In Your BuddyPress Site Without Loosing Them In The Next Update ? Add actions and hacks without touching your theme’s function.php file. So that you don’t loose them anytime while running BuddyPress update. No need of editing...
- Social Sharing Buttons For BuddyPress Activities, Forum Topics, Posts And Groups Adds social sharing buttons on your BuddyPress site to let members and visitors share content on popular networks like Twitter and Facebook etc. For WordPress...
- How To Display Most Recent Posts Across Your WordPress Multisite Network ? You can easily display most recent blog posts across your WordPress Multisite Installation including recent posts from all subsites and main site of your WordPress...
- TechCrunch Style Lazy Load Social Media Sharing Buttons For Your WordPress Site TechCrunch uses Socialite.js script can for displaying social media sharing buttons with lazy loading feature. Lazy load simply means that the real js sharing buttons...
- Create Facebook Type Avatar Bubbles In Your BuddyPress Site Create Facebook type mouse over bubbles on your BuddyPress site members Avatars and Profile links. You must have noticed, after hovering over Facebook Profile; a...
- Now You Can Add An Avatar Suggestions List In BuddyPress Network Today iMath launched a new BuddyPress plugin that allows site admins to add an avatar suggestions list that lets your BuddyPress community members to select...
- Let Your BuddyPress Members Show Their Google Plus, Facebook & Twitter Profile Buttons On Their BuddyPress Profiles You can easily allows your BuddyPress site members to shows their Social Profile Buttons of Google Plus,Facebook and Twitter on their BuddyPress profile page in...
- Make Facebook-Twitter Type Profile Address In Your BuddyPress Network Allow yours BuddyPress site members to create their usernames in site’s root. So that their profile URL appear as domain.com/username Just like Facebook & Twitter...





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.