WordPress.org

Support

Support » Plugins and Hacks » Events Manager and WPML Compatibility » php notice (debug) with buddypress / bbpress

php notice (debug) with buddypress / bbpress

  • Hi Marcus,

    since BuddyPress 1.7 and bbPress 2.3 there is a new php notice, thrown in debug, caused by your plugin:

    Notice: bp_setup_current_user was called incorrectly. Der aktuelle Benutzer wird ohne die Verwendung von $wp->init() initialisiert. Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in …/wp-includes/functions.php on line 3012

    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 3012

    All you have to do is change line 701:
    add_action('plugins_loaded', 'EM_WPML::init');
    to:
    add_action('after_setup_theme', 'EM_WPML::init');

    thanks in advance 🙂

    http://wordpress.org/plugins/events-manager-wpml/

  • The topic ‘php notice (debug) with buddypress / bbpress’ is closed to new replies.
Skip to toolbar