Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Avatar Upload Issues

i added a note to this ticket:

https://trac.buddypress.org/ticket/1294

basically i found a few inconsistencies with file paths in the group section – also bp-groups-templatetags.php had a bunch of wrong file paths (double // in group urls) – the image path being sent to process did not contain the fullpath to the file – it would be just wp-content/uploads/etc instead of /home/user/domain/wp-content/uploads/etc)

the image width check was failing (on bp-core-avatars.php)

if ( getimagesize( $bp->avatar_admin->original['file'] ) > BP_AVATAR_ORIGINAL_MAX_WIDTH )

to

list($width, $height) = getimagesize( $bp->avatar_admin->originalfile? );
if ( $width > BP_AVATAR_ORIGINAL_MAX_WIDTH )

wp_crop_image ignores gif/png and saves everything as jpg (killing transparency – though to note the jquery cropper script does not support transparency during the UI selection)

Skip to toolbar