• Buddypress version 1.7

    I m getting 2 errors –

    Notice: 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 H:\xampp\htdocs\xampp\projects\marry\wp-includes\functions.php on line 3012

    Notice: Undefined index: customcss in H:\xampp\htdocs\xampp\projects\marry\wp-content\themes\frisco-for-buddypress\functions.php on line 141

Viewing 1 replies (of 1 total)
  • Hi, dear Frisco developer.
    I think I found the solution for that.

    In your theme-options.php file make the following changes.
    line 5-7
    replace

    if ( current_user_can( 'edit_theme_options' ) ) {
    add_action( 'admin_bar_menu', 'theme_options_nav' );
    }

    with
    add_action( 'admin_bar_menu', 'theme_options_nav' );

    in the same file line~79-89 replace

    // Add theme options navigation to admin bar.
    if ( current_user_can( 'edit_theme_options' ) ) {
    	function theme_options_nav() {
    	 global $wp_admin_bar;
    	 $wp_admin_bar->add_menu( array(
    	 'parent' => 'appearance',
    	 'id' => 'theme-options',
    	 'title' => 'Theme Options',
    	 'href' => admin_url('themes.php?page=theme_options')
    	 ) );
    	}
    }

    with

    // Add theme options navigation to admin bar.
    function theme_options_nav() {
        if (current_user_can('edit_theme_options')) {
            global $wp_admin_bar;
            $wp_admin_bar->add_menu(array(
                'parent' => 'appearance',
                'id' => 'theme-options',
                'title' => 'Theme Options',
                'href' => admin_url('themes.php?page=theme_options')
            ));
        }
    }

    This will also heal your theme incompatible with various plugins (ex. BP Group Documents).

    Let me know if it works.
    Bests
    Lena

Viewing 1 replies (of 1 total)
  • The topic ‘bp_setup_current_user was called incorrectly.’ is closed to new replies.