Skip to:
Content
Pages
Categories
Search
Top
Bottom

avatar cropping: after upload, image and cropper don\'t appear, fails

  • @rickbradford

    Member

    Hello, all. I’ve having trouble uploading avatars for members (haven’t tried groups). I’ve looked around the forums but haven’t found a thread for this specific issue.

    What happens is I can choose the image, it seems to upload and I get the crop screen. Except the image is blank and there are no graphics for the cropper tool. If I click the crop button I get an error message: “There was a problem cropping your avatar, please try uploading it again”

    So what I see is basically this:

    Crop Your New Avatar

    Avatar to cropAvatar preview

    Below it is an avatar-sized space with no image and below that is the “Crop Image” button.

    1. In BP settings “Disable avatar uploads?” is checked no.

    2. I can upload images to Media.

    3. Identicons work.

    4. I’ve got three active plugins. I deactivated them one by one to try uploading an avatar and it didn’t make any difference. Jquery (the conflicting plugin in another thread) is not one of them.

    5. Right-clicking in the blank space suggests the image isn’t there at all (no image-related options).

    WP 2.9.2

    BP 1.2.2.1

    Firefox 3.6 (prior/after an update installed today), Opera 10.10

    BuddyPress Widget Theme 1.2

    I’m missing something, right?

Viewing 25 replies - 1 through 25 (of 52 total)
  • @gian-ava

    Participant

    I got the same exact problem.

    WP 2.9.2

    BP 1.2.2.1

    …too!

    Any help is appreciate. It’s not cool when a memeber try to upload his/her picture and it just doesn’t work.

    @gian-ava

    Participant

    Tried Group Avatar, just in case. Same proble as for profiles.

    @apeatling

    Keymaster

    Does it work with the default theme?

    @gian-ava

    Participant

    I actually got the bp-template-pack installed for integration into an existing WP theme. Also have bbPress installed and running.

    The site I am working on is http://cureuphoria.com/activity

    Thanks Andy.

    @windhamdavid

    Participant

    mu or single user wordpress? the version info is not in the <head> but the /blog url indicates it’s MU. at first I thought PHP GD library, it’s not ~ you’re on a (gs) at media temple and I’ve tested there, and seem to remember running into this so I registered on your site to test (I like the cure anyhow) and I notice that your image url path is off ~ if you running from the sites/ directory with mu are there any other custom configurations to accomodate not running it from the root folder that might effect this url?

    ~ you may try “Settings” >> “Miscellaneous” Clear “Store uploads in this folder”-path

    or ~ https://trac.buddypress.org/ticket/1970

    or ~ https://buddypress.org/forums/topic/avatar-upload-issues/

    or ~ https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions#post-11864

    otherwise, try to make sure that your wp-content/blogs.dir/ have the proper permissions and that your uploads url settings are correct.

    @gian-ava

    Participant

    David, actually I don’t have MU installed, just regulat WP single…

    @djpaul

    Keymaster

    Windhamdavid, your post got marked as spam by askimet (spelling?). I’m just going through the spam bin atm.

    @gian-ava

    Participant

    Ok, this worked for me (I hope it fixes evrybody else):

    Go to Settings -> Miscellaneous Settings

    Set “Store uploads in this folder” to “wp-content/uploads”.

    Set “Full URL path to files” to the REAL FULL PATH of your uploads.

    Then change bp-core-avatars.php line 389:

    Replace:

    if ( !$path = get_option( ‘upload_path’ ) )

    $path = WP_CONTENT_DIR . ‘/uploads’;

    With:

    if ( !$path = get_option( ‘upload_path’ ) )

    $path = WP_CONTENT_DIR . ‘/uploads’;

    else $path = ABSPATH . $path;

    It fixes the problem.

    Source: https://buddypress.org/forums/topic/avatar-upload-issues/page/2

    @koms

    Participant

    I’m also facing the same problem with

    WP 2.9.2

    BP 1.2.2.1

    bp-default theme

    Please help

    Thanks

    @the-molitor

    Member

    Similar issue for me too. I’m running the latest BuddyPress template package on my normal WordPress install. The image appears correctly in the cropping section after upload, but the actual cropping tool doesn’t appear.

    Reference site: http://1stbaptistchurch.org/activity

    @kb734

    Participant

    The change from @gian-ava to the bp-core-avatars.php file on line 389 corrects the problem when running a single installation of wordpress.

    Thanks @gian-ava

    @kyleyates

    Participant

    Just did the work-around provided by gian-ava and my site is running fine now. Avatars upload properly, can be cropped and saved like the system should. It’s funny though because I have the same versions running on another domain and have no problems at all changing avatars, saving or cropping.

    @the-molitor

    Member

    I’m still having trouble with the cropping tool not appearing.

    Anybody?

    @gian-ava

    Participant

    @the-molitor Did you try the code and settings above?

    @pepitu

    Member

    @gian-ava Thanks!

    @the-molitor

    Member

    The above fix does address the issue of the images not appearing after upload, but I still don’t see the jCrop tool with the options to crop the image properly.

    @courtneychesley

    Member

    I am unable to change/upload avatars, too.

    WP 2.9.2

    BP 1.2.2.1

    Template Pack installed on current WP theme

    http://www.MyVintageAddiction.com

    I tried the fix suggested by gian-ava and unfortunately- no change. Help?

    @babybrownfox

    Member

    You can also checkout this tutorial http://ping.fm/ZtmLt

    @cpbsmi

    Member

    Thanks that did it.

    @erikkuntz

    Member

    I’ve done the changes: no problems with uploading the Avatars, but still no crop tool. Still hunting for the answer to this one, it was working fine until a few days ago and now I have to figure out what changed in my setup.

    @helpme1

    Participant

    I tried.. but it doesn’t upload.. something wrong!!!!

    @kippnkatie

    Member

    @gian-ava
    I pasted in your changes. My avatars work but now I am getting this error on my blog
    Warning: Division by zero in /home/bethelbc/bethelbaptistkalamazoo.com/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 393

    @xeyez

    Participant

    @gian-ava
    yes i get error to when i did the changes….
    Warning: Division by zero in /hsphere/local/home/mahzouni/mahzouni.com/appfactory/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 390

    but awatars work… :S

    @loomz

    Member

    I having the same problem mentioned above :(…if anyone can, plz provide some help…

    @shaista

    Participant

    @gian-ava You are great, thanks a lot :)
    @Leonardo & @loomz: I think you both just copy paste the gian-ava code. If I’m right then remove the single quotes in code and again add by yourself with single or double quotes, that’s it.

Viewing 25 replies - 1 through 25 (of 52 total)
  • The topic ‘avatar cropping: after upload, image and cropper don\'t appear, fails’ is closed to new replies.
Skip to toolbar