Skip to:

Avatar Cropping error

  • Profile photo of mugwumpman


    Hi, I can upload images using the Avatar uploader, and it shows it in the crop interface fine, but when you <i>click on ‘Crop'</i> it returns a message saying “There was a problem cropping your avatar.”

    I had it working a while back, and the only vaguely relevant customisations in the functions.php file seem to be fine:

    // Resizes post thumbnails
    set_post_thumbnail_size( 1200, 800, true );
    // Resizes avatars
    define ( 'BP_AVATAR_THUMB_WIDTH', 50 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 50 );
    define ( 'BP_AVATAR_FULL_WIDTH', 1920 );
    define ( 'BP_AVATAR_FULL_HEIGHT', 1111 );
    define ( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 2000 );
    define ( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', 819200 );
    //Creates ability to get avatar url
    function get_avatar_src($avatar_id){
    	$pattern = '#src="(.*(\.jpg|\.png|\.gif))"#';
    	$contents = get_avatar($avatar_id);
    	preg_match($pattern, $contents, $matches);
    	return $matches[1];

    I’ve switched themes to twentythirteen thinking it’d be a problem with the theme, but instead I get a message saying “Upload Failed! Error was: No editor could be selected.” when I try and upload an avatar image.

    The site in question is and I’ve been trying to get to work.

    Could anyone point me in the right direction of what might be affecting this?

    Many thanks!

    PS – I’m using WP 3.9 and BP 2.0

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Avatar Cropping error’ is closed to new replies.
Skip to toolbar