Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning notice from the plugin file


  • Julian M
    Participant

    @caesarby

    Hello. Im using default wp theme (Twenty Fifteen) and default BuddyPress plugin.

    I got a warning:

    "Notice: bp_setup_current_user was called incorrectly. The current user is being initialised without using $wp->init().
    Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in public_html\wp-includes\functions.php on line 3622"

    Yep. I have “WP_DEBUG” constant as TRUE (it’s my dev environment).
    What is wrong here? Is it bug?

    The warning disappears when i remove the 36 line from the file “bp-core-actions.php”
    add_action( 'set_current_user', 'bp_setup_current_user', 10 );
    wp-content/plugins/buddypress/bp-core/bp-core-actions.php:36

    It seems, that plugin’s authors are using some dirty code.

    PS I cannot add a bug report on the page https://buddypress.trac.wordpress.org/. I click “login” link, but the page reloaded without changes. This plugin make me sad unfortunatly.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Warning notice from the plugin file’ is closed to new replies.
Skip to toolbar