Forum Replies Created

Viewing 15 replies - 76 through 90 (of 90 total)
  • Thread Starter Becki Beckmann

    (@becki)

    do you have the web developer firefox extension installed? if not then do so … probably also firebug extension … then you can see the errors and probably trace it back to another plugin or core function

    yes … i can confirm the same issues here on my multi site install. dashboard not working properly and if you debug with web developer firefox extension it will throw 2 jquery errors from the headspace2 plugin

    unfortunately i’m not a big jquery guy so i think we have to be patient and wait for a patch from the headspace2 dev guys

    btw … really thanks for such a great plugin … two thumbs up!

    Thread Starter Becki Beckmann

    (@becki)

    hi there,

    i think i found the problem

    abigailm … are you using the headspace2 plugin?

    i had a deeper look with the web developer toolbar and found 2 jquery errors ->

    Error: jQuery(“#desc_1309987823”).Counter is not a function
    Error: jQuery(“#desc_1309987877”).Counter is not a function

    and these errors are coming from headspace2 plugin

    [Code moderated as per the Forum Rules. Please use the pastebin]

    and i even found a post on the headspace2 plugin page at wordpress where people have similar issues

    https://www.ads-software.com/support/topic/dashboard-problem-after-32-upgrade?replies=3

    i think that could be the culprit … seems we have to wait for an update from the headspace2 guys

    also if i look in the dashboard i don’t see a headspace2 widget but if i look in the page source i see a headspace2 widget code.

    i think that must be it!

    so … i think we have to applaud ipstenu ?? it was … probably is … another plugin causing this issue

    more when i find out more …

    Thread Starter Becki Beckmann

    (@becki)

    hi abigailm

    you’re a star ??

    So it is a big help to offer up suggestions for more debugging — but denying that there is a problem in the face of multiple reports doesn’t make sense.

    after the last reply from user ipstenu, which i actually didn’t find very helpful, i just couldn’t be bothered to send another reply … sorry

    i had the same impression of denying that there is a problem

    so thanks abigailm, i couldn’t have used better words ??

    aehm …. by the way … i know my name becki is a bit confusing as most people think i’m female … hahaaa ?? but the female becky is written with a ‘y’ and the male becki is written with an ‘i’, at least here in germany.

    well … i know, very confusing, but i got this nickname assigned by some friends of mine in the last couple of years

    here’s the actual proof being male -> https://beckspaced.com

    thanks again abigailm ??

    Thread Starter Becki Beckmann

    (@becki)

    probably some other widgets are causing the problem?

    you can disable all widgets if you like. there is this global $wp_meta_boxes which you could have a look at to see which widgets are loaded. there are 2 kinds of widgets ‘normal’ and ‘core’. you could loop with foreach through the normal and core and then remove them one by one to see if removing widgets helps to improve things.

    have a look at the function below i used to figure out things ->

    function removeDashboardWidgets() {
    	// Globalize the metaboxes array, this holds all the widgets for wp-admin
    
    	global $wp_meta_boxes;
    
    	/*
    	foreach (array_keys($wp_meta_boxes['dashboard']['side']['core']) as $name){
    		echo ("<p>");
    		echo ($name);
    		echo("</p>");
    
    	}
    	*/
    
    	// Remove the quickpress widget
    
    	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
    
    	// Remove the incomming links widget
    
    	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
    	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
    	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
    	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
    	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
    	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
    } 
    
    // Hoook into the 'wp_dashboard_setup' action to register our function
    
    add_action('wp_dashboard_setup', 'removeDashboardWidgets' );

    a var_dump($wp_meta_boxes) will probably also give you the info you need

    best of luck and please post your report here

    Thread Starter Becki Beckmann

    (@becki)

    yep … great … we got another one ?? who can confirm that it has nothing to do with plugins or the different browsers

    abigailm … just put that piece of code into your functions.php in the theme. if there isn’t a functions.php file there yet then just create one and put that code in to remove the ‘quickpress’ widget and see if this helps. it did help on my sites and the errors were gone

    // Create the function to use in the action hook
    
    function removeDashboardWidgets() {
    	global $wp_meta_boxes;
    	// Remove the quickpress widget
    	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
    
    } 
    
    // Hoook into the 'wp_dashboard_setup' action to register our function
    
    add_action('wp_dashboard_setup', 'removeDashboardWidgets' );

    please let me know if this improves things – thanks

    Thread Starter Becki Beckmann

    (@becki)

    hi otto,

    thanks for the reply

    where can i find those rewrite rules in the database? in the ‘options’ table?

    Thread Starter Becki Beckmann

    (@becki)

    so … just did what you told me. enabled the twenty eleven theme for the network. then enabled it on one mutlisite domain and the problem is still there!!

    if i click on the toggle thingy in the dashboard upper right corner ‘screen option’ or ‘help’ or on ‘howdy, username’ nothing is happening! the menus don’t collapse!

    so it is the same thing with theme twenty eleven.

    also i’m not sure how you could say that i clearly have made a few changes??

    i haven’t! just the standard twenty ten theme with ONE function in the functions.php file to remove this ‘quickpres’ widget as the problems go away after i did that

    hope this helps you guys to re-produce the issue

    thanks & fun
    becki

    Thread Starter Becki Beckmann

    (@becki)

    well … actually i didn’t do any changes at all! not one single bit!

    the sites use the default twenty ten theme … but i will give twenty eleven a try and will report back ??

    thanks

    Thread Starter Becki Beckmann

    (@becki)

    hi andrea,

    thanks for your reply …

    don’t think that a plugin is flushing my rewrite rules in the htaccess file, because then all other sites would be affected by this, which actually isn’t the case

    but i think a WP upgrade somehow might flush the settings for that multi site … or a plugin could cause that … in the database table ‘options’

    sadly i don’t have much time to dig deeper into that. will keep on updating the permalink structure after every upgrade ..

    but thought perhaps you guys would know about a fix for this issue

    anyway … thanks a lot
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hey duck__boy ??

    you’re the man! custom widgets saved my day ??

    did create my custom widget class extending from WP_Widget and saved the code in the themes function.php file

    then registered my custom widget ->
    register_widget(‘myCustomWidget’);

    and voila … in the admin panel the widget shows up and i can drag & drop it into the sidebar …

    no more modifying of WP core files … problem solved ??

    thanks again for pointing me towards the right direction!

    greetz
    becki

    Thread Starter Becki Beckmann

    (@becki)

    yep …thanks a lot for your idea ??

    the register_sidebar function would take care of the ->

    before_widget & after_widget
    before_title & after_title

    great!

    but this would still lack 2 things I’m trying to achieve …

    first … completely remove the $title!
    and add a CSS class ‘vlist’ to the UL container!

    how can this be done without modifying the core file??

    any more input, ideas & hints are more than welcome ??

    greetings
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello duck__boy,

    thanks for your reply … i will copy the original and modified code below so you can have a look what i’m trying to achive ->

    original code first ->

    function widget( $args, $instance ) {
    		extract( $args );
    
    		$title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base);
    		$sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
    		$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
    
    		if ( $sortby == 'menu_order' )
    			$sortby = 'menu_order, post_title';
    
    		$out = wp_list_pages( apply_filters('widget_pages_args', array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ) );
    
    		if ( !empty( $out ) ) {
    			echo $before_widget;
    			if ( $title)
    				echo $before_title . $title . $after_title;
    		?>
    		<ul>
    			<?php echo $out; ?>
    		</ul>
    		<?php
    			echo $after_widget;
    		}
    	}

    modified function follows ->

    function widget( $args, $instance ) {
    		extract( $args );
    
    		$title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base);
    		$sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
    		$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
    
    		if ( $sortby == 'menu_order' )
    			$sortby = 'menu_order, post_title';
    
    		$out = wp_list_pages( apply_filters('widget_pages_args', array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ) );
    
    		if ( !empty( $out ) ) {
    			// echo $before_widget; core hack
    			if ( $title)
    				// echo $before_title . $title . $after_title; core hack
    		?>
    		<ul class="vlist">
    			<?php echo $out; ?>
    		</ul>
    		<?php
    			// echo $after_widget; core hack
    		}
    	}

    so … what am i modifying?

    first i need to remove the $before & $after_widget
    then i need to remove the $title from the widget …
    last … i need to add a CSS class named ‘vlist’ to the
    ‘ul’ container
    this is a request from my customer … he doesn’t want to have the widget title ‘pages’

    what’s the best way to achieve this without modifying the core files?

    thanks & fun
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello 2ells,

    thanks for your reply and pointing me in the right direction.
    did also browse through the forum here and someone else was asking a similar question ->

    WordPress 3.0.5 changelog

    thanks & all the best

    greetings
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello 2ells,

    thanks a lot for your reply and pointing me to the right direction.
    just had a look through some other posts in this forum and someone asked a similar question ->

    so … my question has been answered ?? thanks for your help!

    greetings
    becki

Viewing 15 replies - 76 through 90 (of 90 total)