[buddypress-trac] [BuddyPress] #4335: Activity stream "everything" filter assumes Groups component is active

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Jul 8 19:58:59 UTC 2012


#4335: Activity stream "everything" filter assumes Groups component is active
--------------------------+-----------------------------
 Reporter:  DJPaul        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.6-beta
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 For some types of activity, the activity stream "everything" filter will
 throw a fatal error when the Groups component is disabled.

 Using the BuddyPress Default Data plugin, on a clean 1.6b2/3.4.1 non-ms
 install (accepting all install wizard defaults), create some data for the
 Groups component. Then deactivate the Groups component, and to the
 Activity page on the BP-Default theme.
 If the filter is set to "everything", the following fatal errors occur:

 [08-Jul-2012 19:53:00 UTC] PHP Fatal error:  Call to undefined function
 groups_get_group() in /Users/paul/Sites/master/wp-
 content/plugins/buddypress/bp-activity/bp-activity-template.php on line
 1065

 Here is an example of an activity item that throws this error:
 `object(stdClass)#233 (19) { ["id"]=> string(3) "453" ["user_id"]=>
 string(2) "19" ["component"]=> string(6) "groups" ["type"]=> string(15)
 "activity_update" ["action"]=> string(188) "jason posted an update in the
 group The Shawshank Redemption" ["content"]=> string(25)
 "http://vimeo.com/19658300" ["primary_link"]=> string(33)
 "http://example.com/members/admin/" ["item_id"]=> string(2) "11"
 ["secondary_item_id"]=> string(1) "0" ["date_recorded"]=> string(19)
 "2012-07-08 19:46:08" ["hide_sitewide"]=> string(1) "0" ["mptt_left"]=>
 string(1) "0" ["mptt_right"]=> string(1) "0" ["is_spam"]=> string(1) "0"
 ["user_email"]=> string(15) "email18 at aol.com" ["user_nicename"]=>
 string(5) "jason" ["user_login"]=> string(5) "jason" ["display_name"]=>
 string(14) "Jason Chaffetz" ["user_fullname"]=> string(5) "jason" }`

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


More information about the buddypress-trac mailing list