Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


  • rickbradford
    Member

    @rickbradford

    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)

  • Gianfranco
    Participant

    @gian-ava

    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.


    Gianfranco
    Participant

    @gian-ava

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


    Andy Peatling
    Keymaster

    @apeatling

    Does it work with the default theme?


    Gianfranco
    Participant

    @gian-ava

    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

    @windhamdavid

    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.


    Gianfranco
    Participant

    @gian-ava

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


    Paul Wong-Gibbs
    Keymaster

    @djpaul

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


    Gianfranco
    Participant

    @gian-ava

    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

    @koms

    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

    @the-molitor

    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

    @kb734

    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

    @kyleyates

    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

    @the-molitor

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

    Anybody?


    Gianfranco
    Participant

    @gian-ava

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


    Pepitu
    Member

    @pepitu

    @gian-ava Thanks!

    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

    @courtneychesley

    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?

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

    Thanks that did it.

    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

    @helpme1

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

    @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


    Leonardo
    Participant

    @xeyez

    @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

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

    @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