Notice: bbp_setup_current_user was called incorrectly.

Any chance you could help me with the following error? I'm having trouble with registration process and wonder if this might be part of the problem.

Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init() in /home/mary/public_html/wp-includes/functions.php on line 3792

Thank you.

  • Rupok

    Hi Mary

    Hope you had a wonderful day.

    I just searched for you and found that this to be a issue between WordPress and bbPress. Check the following tickets:
    https://bbpress.trac.wordpress.org/ticket/2309
    https://core.trac.wordpress.org/ticket/24169

    This is their official response from bbPress people:

    This is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Turning off debug fixes this.

    To turn off debugging, find this line in your wp-config.php file:
    define('WP_DEBUG', true);
    and replace with:
    define('WP_DEBUG', false);

    Not Recommended Way:
    If you want it to disappear whilst you are developing (and so need debug on), then go to wp-content/plugins/bbpress/includes/core/sub-actions.php and comment out/change line 147:
    _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
    to
    //_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );

    Again I'm saying, this is not recommended. Editing core WordPress files are not recommended in any situation. Still I gave you the solution if you needed it badly.

    Please let us know if you have any confusion. We will be glad to help.

    Have a nice day. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.