Title: bbp_setup_current_user was called incorrectly
Last modified: August 24, 2016

---

# bbp_setup_current_user was called incorrectly

 *  Resolved [sambedingfield](https://wordpress.org/support/users/mech24/)
 * (@mech24)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bbp_setup_current_user-was-called-incorrectly/)
 * With the latest version of WordPress (4.1.1), bbPress (2.5.6) and Front End PM(
   3.1) I’m getting the following error notice:
 * `bbp_setup_current_user was called incorrectly. The current user is being initialized
   without using $wp->init(). Please see Debugging in WordPress for more information.(
   This message was added in version 2.3.) in wp-includes/functions.php on line 
   3547`
 * Strange, as this only happens after activating Front End PM. From doing some 
   research, it seems that this is introduced when “is_user_logged_in() or current_user_can()
   is used before $wp->init()”.
 * Any ideas how we can resolve this?
 * [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

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

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bbp_setup_current_user-was-called-incorrectly/#post-5984370)
 * I have added hooks in plugins_loaded which is called before init. That’s why 
   you are getting this error. I will change some in next release.
    temporarily 
   you can change in fep-admin-frontend-class.php line 152
 *     ```
       add_action('plugins_loaded', array(fep_admin_frontend_class::init(), 'actions_filters'));
       ```
   
 * to
 *     ```
       add_action('wp_loaded', array(fep_admin_frontend_class::init(), 'actions_filters'));
       ```
   
 *  Thread Starter [sambedingfield](https://wordpress.org/support/users/mech24/)
 * (@mech24)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bbp_setup_current_user-was-called-incorrectly/#post-5984406)
 * Thank you Shamim. Great plugin and great support.

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

The topic ‘bbp_setup_current_user was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sambedingfield](https://wordpress.org/support/users/mech24/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/bbp_setup_current_user-was-called-incorrectly/#post-5984406)
 * Status: resolved