Title: Error when posting new reply
Last modified: August 30, 2016

---

# Error when posting new reply

 *  Resolved [demonboy](https://wordpress.org/support/users/demonboy/)
 * (@demonboy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/)
 * 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/](https://wordpress.org/plugins/bbpress-post-via-mail/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Unicornis](https://wordpress.org/support/users/unicornis/)
 * (@unicornis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480765)
 * 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](https://wordpress.org/support/users/demonboy/)
 * (@demonboy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480766)
 * Yep, got it sorted, thanks.
 *  [johnmontfx](https://wordpress.org/support/users/johnmontfx/)
 * (@johnmontfx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480853)
 * Following up on this older post…
 * I have BuddyPress installed and does this mean I can’t use this plugin in my 
   environment?
 *  [johnmontfx](https://wordpress.org/support/users/johnmontfx/)
 * (@johnmontfx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480854)
 * Sorry…just reposting to get email notifications….
 *  Plugin Author [Unicornis](https://wordpress.org/support/users/unicornis/)
 * (@unicornis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480857)
 * This plugin works fine on my pages with both bbpress and BuddyPress.
 *  [johnmontfx](https://wordpress.org/support/users/johnmontfx/)
 * (@johnmontfx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480858)
 * 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](https://wordpress.org/support/users/unicornis/)
 * (@unicornis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480859)
 * Thanks for your input. I will add it in the next release.
 *  [johnmontfx](https://wordpress.org/support/users/johnmontfx/)
 * (@johnmontfx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480860)
 * Thank **you** for taking that framework and making accessible for bbPress 🙂
 *  [daveselinger](https://wordpress.org/support/users/daveselinger/)
 * (@daveselinger)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480864)
 * 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.

 * ![](https://ps.w.org/bbpress-post-via-mail/assets/icon-256x256.png?rev=1202009)
 * [bbPress Post via Mail](https://wordpress.org/plugins/bbpress-post-via-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-post-via-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-post-via-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-post-via-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-post-via-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-post-via-mail/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [daveselinger](https://wordpress.org/support/users/daveselinger/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-posting-new-reply/#post-6480864)
 * Status: resolved