Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Avatars Not Uploading, No Crop Function, Constant Issue

Interesting! I had a similar problem in my groups and when I looked at the source of my rendered page, the URL for the image was: /home/domain/public_html//group-avatars/1/avatar.jpg

it looks like this function isn’t working right from bp-core-avatars.php

function bp_core_avatar_upload_path() {
if ( bp_core_is_multisite() )
$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
else {
if ( !$path = get_option( 'upload_path' ) )
$path = WP_CONTENT_DIR . '/uploads';
}

return apply_filters( 'bp_core_avatar_upload_path', $path );
}

Calling upload_path is wrong. It should be upload_url_path – I don’t know if this is a WP 3.0 thing or not, but I’ll open a trac for it :)

Skip to toolbar