Support » Plugin: bbPress Post via Mail » Error when posting new reply

  • Resolved demonboy

    (@demonboy)


    Hi

    Excited to see this plugin but I’ve just installed this on latest version of WP and BBpress and get this error when trying to reply to a topic:

    Fatal error: Call to undefined function groups_get_current_group() in /home/oysterow/public_html/wp-content/plugins/bbpress-post-via-mail/library/pvm/Connector/bbPress.php on line 210

    https://wordpress.org/plugins/bbpress-post-via-mail/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Unicornis

    (@unicornis)

    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.

    Thread Starter demonboy

    (@demonboy)

    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….

    Plugin Author Unicornis

    (@unicornis)

    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!

    Plugin Author Unicornis

    (@unicornis)

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error when posting new reply’ is closed to new replies.