Title: Fatal error on using bbPress hook
Last modified: August 21, 2016

---

# Fatal error on using bbPress hook

 *  Resolved [ibridge_jp](https://wordpress.org/support/users/ibridge_jp/)
 * (@ibridge_jp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/)
 * Hi.
    I using bbPress hook.
 * Fatal error: Using $this when not in object context in /wp-content/plugins/mycred/
   plugins/mycred-hook-bbPress.php on line 50
    on http;//mysite.com/forums/users/
   username
 * Please fix theme.
    Thank you.
 * WP 3.81
    myCRED 1.4
 * [https://wordpress.org/plugins/mycred/](https://wordpress.org/plugins/mycred/)

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

 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739903)
 * Hi.
 * Thank you for reporting this. If you open that particular file mentioned and 
   change line 50 from:
 *     ```
       $balance = $mycred->get_users_cred( $user_id, $this->mycred_type );
       ```
   
 * to:
 *     ```
       $balance = $mycred->get_users_cred( $user_id, $mycred->mycred_type );
       ```
   
 * What theme are you referring to?
 *  Thread Starter [ibridge_jp](https://wordpress.org/support/users/ibridge_jp/)
 * (@ibridge_jp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739925)
 * Thank you for reply and support!
 * That error has disappeared after installing the “BuddyPress”.
 * So, I can not reproduce the behavior. Sorry.
 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739927)
 * I was able to replicate the issue using bbPress and updated the current version
   to include the proper code. I will be including it in the next update as well
   to cover all bases.
 * Not sure what you mean with “BuddyPress” though.
 *  Thread Starter [ibridge_jp](https://wordpress.org/support/users/ibridge_jp/)
 * (@ibridge_jp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739929)
 * Thank you for quick reply.
 * An error has happened when using only “bbPress”.
 * Maybe, this error does not occur when using at the same time the “bbPress” and“
   BuddyPress”…
 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739930)
 * Have a look at your bbPress hook settings.
    You can select if you want to show
   your users balance in replies. This bug is only visible if you select to show
   balances. If not the bug will now show up.

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

The topic ‘Fatal error on using bbPress hook’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-using-bbpress-hook/#post-4739930)
 * Status: resolved