Problem when i upload avatar in registration page.
-
I have used “BuddyPress Signup Avatar plugin and “Buddypress Upload Avatar Ajax plugin” which is not compatible with latest buddy press version 2.8.1 .
I have issue with ” There was a problem cropping your avatar”
Lot of spending my time after i have found solutions .
Changes in buddypress core file: wp-content\plugins\buddypress\bp-core\classes\class-bp-attachment-avatar.php in line 207 comment code .
Comment following code here is some change with new version file.
/*if ( ! bp_attachments_current_user_can( ‘edit_avatar’, $args ) ) {
return false;
}*/if ( ‘user’ === $args[‘object’] ) {
$avatar_dir = ‘avatars’;
} else {
$avatar_dir = sanitize_key( $args[‘object’] ) . ‘-avatars’;
}$args[‘item_id’] = (int) $args[‘item_id’];
after commenting then its working perfect .
- You must be logged in to reply to this topic.