[buddypress-trac] [BuddyPress Trac] #9290: ERROR THROWN "NEW TOP 10!"

buddypress-trac noreply at wordpress.org
Fri Dec 26 19:01:10 UTC 2025


#9290: ERROR THROWN "NEW TOP 10!"
-------------------------------------+---------------------
 Reporter:  potcus                   |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  14.5.0
Component:  Extended Profile         |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------

Comment (by espellcaste):

 In [changeset:"14170" 14170]:
 {{{
 #!CommitTicketReference repository="" revision="14170"
 Avoid an error attempting to convert a `WP_Error` object to a `string`
 when
 checking for profile data existence.

 While checking if a profile data exist, let us improve our error handling
 to avoid a PHP error trying to convert a `WP_Error` object to a `string`.

 The reason why we might get a `WP_Error` object is varied, but it implies
 the data does not exist, and we should fail gracefully rather than throw
 an error.

 Developed in https://github.com/buddypress/buddypress/pull/412/

 Props rollybueno and potcus.

 See #9290 (14.0)
 }}}

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


More information about the buddypress-trac mailing list