[buddypress-trac] [BuddyPress Trac] #7870: Groups - Fatal error when joining a group and when the Activity component is disabled

buddypress-trac noreply at wordpress.org
Fri May 25 23:11:49 UTC 2018


#7870: Groups - Fatal error when joining a group and when the Activity component
is disabled
--------------------------+---------------------
 Reporter:  r-a-y         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1.0
Component:  Groups        |     Version:  3.0.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by r-a-y):

 In [changeset:"12125" 12125]:
 {{{
 #!CommitTicketReference repository="" revision="12125"
 Groups: Wrap `groups_record_activity()` calls with `bp_is_active(
 'activity' )`

 In r11924, the `bp-groups-activity.php` file is loaded only if the
 Activity
 component is enabled.

 However, the `groups_record_activity()` function is located in this file.
 Because this function now relies on the Activity component, if the
 Activity
 component is disabled, a fatal error can occur during certain group
 actions.  This commit addresses the problem by checking for the Activity
 component before calling on the function.

 Anti-props r-a-y.

 See #7870 (3.x branch).
 }}}

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


More information about the buddypress-trac mailing list