[buddypress-trac] [BuddyPress Trac] #9335: Crop fails when the image is 260x260 pixels

buddypress-trac noreply at wordpress.org
Sat Apr 25 23:06:11 UTC 2026


#9335: Crop fails when the image is 260x260 pixels
--------------------------+------------------------------
 Reporter:  joneiseman    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:  14.4.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by joneiseman):

 The problem actually has nothing to do with the file size. It's failing
 because the name of the uploaded file contains -bpfull in the name and
 this results in the uploaded file getting removed when the crop function
 tries to cleanup the folder by calling the function
 bp_core_delete_existing_avatar

 Replying to [ticket:9335 joneiseman]:
 > I downloaded the existing avatar image and fixed the rotation. When I
 try to upload the file again to replace the existing image, the crop fails
 and I just get the message:  There was a problem cropping your profile
 photo. This is due to a failure in the crop function in class-bp-
 attachmanet-avatar.php on line 311 because $data is null and that's
 because $absolute_path points to a non-existent file. The value of
 $absolute_path points to .../wp-content/uploads/avatars/2907/1763669118
 -bpfull-260x260.jpg

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9335#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list