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

buddypress-trac noreply at wordpress.org
Wed Aug 18 15:35:16 UTC 2021


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

Comment (by dcavins):

 Same is true when enabling groups:
 `Fatal error: Uncaught Error: Call to undefined function
 bp_get_groups_slug() in /Users/cavinsd/Local Sites/bptest/app/public/wp-
 content/plugins/buddypress/bp-core/bp-core-template.php on line 2442`

 I'm assuming this is because code for the friends and groups components
 are not loaded when the component is not active. I hate to use
 `function_exists()` for something like this, but I'll attach a basic
 patch.

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


More information about the buddypress-trac mailing list