[buddypress-trac] [BuddyPress Trac] #8551: PHP Fatal when enabling friends component

buddypress-trac noreply at wordpress.org
Wed Aug 18 17:00:34 UTC 2021

#8551: PHP Fatal when enabling friends component
 Reporter:  dcavins       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  highest       |   Milestone:  9.2.0
Component:  Friends       |     Version:
 Severity:  critical      |  Resolution:
 Keywords:                |

Comment (by imath):

 As we are using a lot `bp_is_active( $component )`, we could add a check
 inside it to make sure the component is fully loaded. Because if we need
 to check if a function exists each time, `bp_is_active( $component_id )`
 is useless 😬. Maybe you can test adding this into the `bp_is_active()`
 function to see if it fixes the issue?

 if ( ! did_action( 'bp_' . $component . '_includes' ) ) {
    return false;

 PS: there might be problem with PHP Unit tests with this though...

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8551#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list