Skip to:

user init errors with bp_setup_current_user & bbp_setup_current_user

  • Peter Hardy-vanDoorn


    My debug.log is showing thousands of entries, all the same:

    bp_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 1.7.) in .../html/wp-includes/functions.php on line 3049 and also starting with bbp_setup_current_user was called incorrectly. Always together, and repeated thousands of times.

    Before I begin the arduous process of going through the usual plugin and theme troubleshooting, has anyone else come across this and found a fix?


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

  • shanebp


    It probably is in a plugin.

    Hopefully BP and bbpress are not throwing that warning.

    You could try setting debug to true in wp-config.
    And then go to the dashboard and see if the warnings continue.
    Then deactivate the plugins one at a time to narrow it down.

    > repeated thousands of times
    Per what? Each load or over a large time period?

    Peter Hardy-vanDoorn


    Thanks @shanebp, yes I know how to trouble-shoot WP – I was hoping that, since it’s reporting as coming from WP’s functions.php, this might be a known issue, so thought I’d ask first before taking the site offline.

    I have my wp-debug set to write to a log file. I cleared the file and loaded one page, and saw the 2 errors repeated 4 times. So, over the course of a day with many people accessing it quickly mounts up to thousands!




    4 times – yikes.

    That suggests maybe 4 plugins are calling bp_setup_current_user too soon.
    Or …

    Do any of your plugins create widgets? Might explain the multiple calls.

    Instead of deactivating plugins one at a time, have you tried greping the plugins folder for bp_setup_current_user ?

    If you find it, check to see which hook is calling it.
    ‘bp_include’ is the recommended hook.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘user init errors with bp_setup_current_user & bbp_setup_current_user’ is closed to new replies.
Skip to toolbar