[buddypress-trac] [BuddyPress Trac] #8760: PHP 8.1 fatal / PHP <8 notice: Trying to get property 'ancestors' of non-object

buddypress-trac noreply at wordpress.org
Wed Nov 9 00:07:33 UTC 2022


#8760: PHP 8.1 fatal / PHP <8 notice: Trying to get property 'ancestors' of non-
object
--------------------------+-----------------------------
 Reporter:  dd32          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The current PHP Notice is being triggered on BuddyPress.org, and is a
 Fatal error in PHP 8.1:
 {{{
 E_NOTICE: Trying to get property 'ancestors' of non-object in {file}

 PHP 8.1 Fatal error: Uncaught Error: in_array(): Argument #2 ($haystack)
 must be of type array, null given
 in {file}

 Source: GET https://buddypress.org/users/dd32/

 File: wp-content/plugins/buddypress/bp-core/bp-core-filters.php
 Line: 202
 }}}

 See PR.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8760>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list