Skip to:
Content

BuddyPress.org

Opened 12 months ago

Closed 12 months ago

Last modified 10 months ago

#8407 closed defect (bug) (fixed)

PHP Deprecated error shown in debug.log when trying to upload profile photo

Reported by: pooja1210 Owned by: imath
Milestone: 7.0.0 Priority: normal
Severity: normal Version:
Component: Extended Profile Keywords: has-patch commit
Cc:

Description

Test Environment
BuddyPress: v6.4.0
WordPress: v5.6-RC3 release

From the profile page tried to change the profile image, was able to change the image but PHP deprecated error is shown in debug.log.

PHP Deprecated:  xprofile_avatar_uploaded is <strong>deprecated</strong> since version 6.0.0! Use bp_members_avatar_uploaded instead. in /var/www/htdocs/wp-includes/functions.php on line 5234

Can anyone help with this?

Thanks!

Attachments (1)

8407.patch (564 bytes) - added by imath 12 months ago.

Download all attachments as: .zip

Change History (6)

#1 @imath
12 months ago

  • Keywords reporter-feedback added

Hi thanks for your report.

This deprecation notice was added by us. Do you have any other plugin active ? If so could deactivate them and try again. Otherwise, what is the active template pack (if you have no idea, you should find the info going into the BuddyPress section of the Info Screen of the Site Health tool) ?

In the meantime, I'm going to check our code to see if we forgot something.

#2 @imath
12 months ago

  • Keywords needs-patch added; reporter-feedback removed
  • Milestone changed from Awaiting Review to 7.0.0

I confirm we forgot to stop using this hook in one place of our code.

@imath
12 months ago

#3 @imath
12 months ago

  • Keywords has-patch commit added; needs-patch removed

8407.patch is fixing the issue. I'll commit it asap.

#4 @imath
12 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12812:

xProfile: stop using a deprecated hook when users update their avatar

Props pooja1210

Fixes #8407

#5 @imath
10 months ago

In 12851:

The new_avatar activity belongs to the Members component

The activity generated when members add/update their profile photo wasn't migrated to the Members component during the 6.0.0 milestone. This commit's goal is to repare this oversight.

See #8156
See #8407
Fixes #8408

Note: See TracTickets for help on using tickets.