This is the function form BuddyPress plugin, hooked to bbp_before_record_activity_parse_args action. Should not be called if Buddypress is not installed. So I am a bit curious why this was causing you problems. From the other posts I see that you figured out an workaround.
If the new version still is problematic in your environment, let me know so I will fix it in the next release.
Yep, got it sorted, thanks.
Following up on this older post…
I have BuddyPress installed and does this mean I can’t use this plugin in my environment?
Sorry…just reposting to get email notifications….
This plugin works fine on my pages with both bbpress and BuddyPress.
I think it works fine for you because you assume in the code that BuddyPress User Groups are enabled. If this is User Groups are not enabled, the error will occur.
To make the plugin more portable and robust, I suggest changing line 114 in Connector/bbPress.php from:
if (class_exists('Group_Activity_Subscription')) {
to this:
if (class_exists('Group_Activity_Subscription') AND function_exists( 'groups_get_current_group' ) ) {
This effectively checks is User Groups is available and will avoid the error if they aren’t.
Enjoy!
Thanks for your input. I will add it in the next release.
Thank you for taking that framework and making accessible for bbPress 🙂
Thanks for making this great plugin. It was a “need-to-have” for our users. Jonmontfx–thanks to you also sir for posting the bug fix. Lifesaver.
–Selly