Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8407 closed defect (bug) (fixed)

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

Reported by: pooja1210's profile pooja1210 Owned by: imath's profile 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 4 years ago.

Download all attachments as: .zip

Change History (6)

#1 @imath
4 years 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
4 years 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
4 years ago

#3 @imath
4 years ago

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

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

#4 @imath
4 years 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
4 years 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.