WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Post Toolbar
Stopped working (3 posts)

  1. vulneratum
    Member
    Posted 2 years ago #

    I just recently updated bbpress and the toolbar stopped working...Any suggestions?

    http://wordpress.org/extend/plugins/bbpress-post-toolbar/

  2. ostenfeldt
    Member
    Posted 1 year ago #

    It's the same for me... stopped working

  3. Eric McNiece
    Member
    Posted 1 year ago #

    Mine still works, but I've noticed that when I'm loading images from the media gallery in the post edit screen, the console pops a 404 on /?bbp_5o1_toolbar_css.

    Further investigations leads us to line 482 of plugins/bbpress-post-toolbar.php:

    function script_and_style() {
    		wp_register_script( 'bbp_5o1_post_toolbar_script', plugins_url('includes/toolbar.js', __FILE__) );
    		//wp_register_style( 'bbp_5o1_post_toolbar_style', plugins_url('includes/toolbar.css', __FILE__) );
    		wp_register_style( 'bbp_5o1_post_toolbar_style', site_url('/?bbp_5o1_toolbar_css') );
    
    		wp_enqueue_script( 'bbp_5o1_post_toolbar_script' );
    		wp_enqueue_style( 'bbp_5o1_post_toolbar_style' );
    	}

    Interesting that the first bbp_5o1_post_toolbar_style has been commented and is instead loaded as a $_GET variable. Wtf?

    Anyway, replaced with the following to prevent timeout on admin screens:

    function script_and_style() {
    		if( !is_admin() ){
    			wp_register_script( 'bbp_5o1_post_toolbar_script', plugins_url('includes/toolbar.js', __FILE__) );
    			//wp_register_style( 'bbp_5o1_post_toolbar_style', plugins_url('includes/toolbar.css', __FILE__) );
    			wp_register_style( 'bbp_5o1_post_toolbar_style', site_url('/?bbp_5o1_toolbar_css') );
    
    			wp_enqueue_script( 'bbp_5o1_post_toolbar_script' );
    			wp_enqueue_style( 'bbp_5o1_post_toolbar_style' );
    		}
    	}

    But of course this only fixes the Media Library issue... I suspect you guys will still see that on the forum side.

    - Have you tried resetting the custom ordering from the settings page? /wp-admin/plugins.php?page=bbpress-post-toolbar

    - What happens when you try commenting out the wp_register_style( 'bbp_5o1_post_toolbar_style', site_url('/?bbp_5o1_toolbar_css') ); line and uncomment the wp_register_style( 'bbp_5o1_post_toolbar_style', plugins_url('includes/toolbar.css', __FILE__) ); ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic