• Resolved stoffuchs

    (@stoffuchs)


    Hi,

    my blog is experiencing a few problems with the js menue. dunno what i have done wrong but since a fews days the “slide” menue isnt working anymore. firefox is telling me the following:

    Error: list is null
    Source: ......../themes/inove_BACKUP/js/menu.js
    Line: 171

    Opening that file line 171 contains the following:

    var node = list.firstChild;

    Here comes my header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <?php
    	$options = get_option('inove_options');
    	if (is_home()) {
    		$home_menu = 'current_page_item';
    	} else {
    		$home_menu = 'page_item';
    	}
    	if($options['feed'] && $options['feed_url']) {
    		if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') {
    			$feed = $options['feed_url'];
    		} else {
    			$feed = 'http://' . $options['feed_url'];
    		}
    	} else {
    		$feed = get_bloginfo('rss2_url');
    	}
    ?>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    	<?php
    		if (is_home()) {
    			$description = $options['description'];
    			$keywords = $options['keywords'];
    		} else if (is_single()) {
    			$description =  $post->post_title;
    			$keywords = "";
    			$tags = wp_get_post_tags($post->ID);
    			foreach ($tags as $tag ) {
    				$keywords = $keywords . $tag->name . ", ";
    			}
    		} else if (is_category()) {
    			$description = category_description();
    		}
    	?>
    	<meta name="copyright" content="2000, 2002, 2005, 2007, Sascha Georgi, SaSH" />
    	<meta name="description" content="Faninitiative der Fighting Kangaroos Chemnitz (BlockParty Chemnitz) - Zweitliga-Volleyball in Deutschland. 2. Damen-Volleyball-Bundesliga - Volleyball im Chemnitzer PSV" />
    	<meta name="keywords" content="Bundesliga, Erste Volleyball Bundesliga Damen, Frauen, Girls, Women, Woman, Volleyball, League German Volleyball League, Champion, Fighting, Kangaroos, CPSV, Chemnitz, Chemnitzer Polizeisport Verein, Sport, Receive, Smash, Hit, Hitter, Outside, Middle, Mittelblock, Blockparty, Chemnitz, Fanclub, kangaroofans, Fans, Fan, 1. Volleyball Bundesliga, Rhiannon Watt, Christin Hölzel, Claudia Steger, Mandy Sohr, Susan Nitzsche, Susi Nitzsche, Andreas Worenz, Andi Worenz, Andi Lorenzo, Mirko Pansa, Günther Schlee, Diana Trützschler, Kai Trützschler, Dr. Stephan Franke, Veronika Majova, Lauren Bertolacci, Josephine Dörfler, Josi Dörfler, Josephine Mai, Josephine Brandt, Josi Brandt, Josi Mai, Caro Herrmann, Carolin Herrmann, Carolin Bilz, Caro Bilz, Franci Girard, Bianka Kirsche, Binki, Stephanie Kurz, Stéphanie Kurz, Anne Weiß, Anne Weiss, Schmetterschlag, Schmetterling, Sascha Georgi, Sash, SaSH, Sasch, Georgi, Fighting Kangaroos, DVL, DVV, Outside Hitter, Netz, Kill, Jump, Jumping, Känguru, Kängurus, Vilsbiburg, Schwerin, Dresden, Wiesbaden, VCO, Berlin, Köpenick, Alemannia Aachen, Aachen, Sonthofen, Allgäu, Team, Mannschaft, Tabelle, Ranking, All Star, AllStar, Allstar, Hamburg, VT Aurubis Hamburg, VfB Suhl, Suhl, Allianz Volley Stuttgart, USC Münster, Zurich, Zürich, TSV Bayer 04 Leverkusen, Fight.Kangaroos Chemnitz, Cross, Beach Volleyball, Beachvolleyball, Germany, German, Deutschland, Deutsch, Deutsche Volleyball Liga (DVL), Volleyball, 1. Bundesliga - Frauen, 1. Bundesliga - Männer, 2. Bundesliga Nord - Frauen, 2. Bundesliga Nord - Männer, 2. Bundesliga Süd - Frauen, 2. Bundesliga Süd - Männer, SSVB, Breitensport, BSF, Cup, Championsleague, Champions League, Europa, USA, Kanada, Canada, Australien, Australia, Tschechien, Tschechische Republik, Czech Republik, Brasilien, Brazil, Sponsoren, Sponsor, Marketing, Etat, Budget" />
    
    	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    	<link rel="shortcut icon" href="http://kangaroofans.com.dd19300.kasserver.com/favicon.ico">
    	<link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all posts', 'inove'); ?>" href="<?php echo $feed; ?>" />
    	<link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - all comments', 'inove'); ?>" href="<?php bloginfo('comments_rss2_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<!-- style -->
    	<style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style>
    	<?php if (strtoupper(get_locale()) == 'ZH_CN') : ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/zh_CN.css" type="text/css" media="screen" /><?php endif; ?>
    	<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) : ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie6.css" type="text/css" media="screen" /><?php endif; ?>
    
    	<!-- script -->
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/util.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/menu.js"></script>
    
    	<?php wp_head(); ?>
    </head>
    
    <?php flush(); ?>
    
    <body>
    <!-- wrap START -->
    <div id="wrap">
    <!-- container START -->
    <div id="container">
    
    <!-- header START -->
    <div id="header">
    	<div id="caption">
    
    		<div>
    	</div>
    </div>
    
    	<!-- navigation START -->
    	<div id="navigation">
    		<ul id="menus">
    			<li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li>
    			<li><a href="/?tag=news" title="News">News</a></li>
    			<li><a href="/forum/index.php" title="Forum">Forum</a></li>
    			<li><a href="/forum/viewforum.php?f=14" title="Presse">Presse</a></li>
    			<li><a href="/?tag=interview" title="Interviews">Interviews</a></li>
    			<?php
    				if($options['menu_type'] == 'categories') {
    					wp_list_categories('depth=2&title_li=0&orderby=name&show_count=0');
    				} else {
    					wp_list_pages('depth=2&title_li=0&sort_column=menu_order');
    				}
    			?>
    
    			<li><a class="lastmenu" href="javascript:void(0);"></a></li>
    		</ul>
    
    		<!-- searchbox START -->
    		<div id="searchbox">
    			<?php if($options['google_cse'] && $options['google_cse_cx']) : ?>
    				<form action="http://www.google.com/cse" method="get">
    					<div class="content">
    						<input type="text" class="textfield" name="q" size="24" />
    						<input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" />
    						<input type="hidden" name="ie" value="UTF-8" />
    						<a class="switcher" ><?php _e('Switcher', 'inove'); ?></a>
    					</div>
    				</form>
    			<?php else : ?>
    				<form action="<?php bloginfo('home'); ?>" method="get">
    					<div class="content">
    						<input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" />
    						<a class="switcher" ><?php _e('Switcher', 'inove'); ?></a>
    					</div>
    				</form>
    			<?php endif; ?>
    		</div>
    		<!-- searchbox END -->
    
    		<div class="fixed"></div>
    	</div>
    	<!-- navigation END -->
    
    	<div class="fixed"></div>
    </div>
    <!-- header END -->
    
    <!-- content START -->
    <div id="content">
    
    	<!-- main START -->
    	<div id="main">

    Does anyone have a clue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Please don’t post huge chunks of code here. For larger blocks of code, use the WordPress pastebin. It makes life easier for everyone.

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    renaming the plugins folder via FTP

    Thread Starter stoffuchs

    (@stoffuchs)

    Hi, yeah, i already tried that but it wont work. even when i deactivate all plugins at once. *sighs*

    sorry for the mass code … thought it would be useful (somehow).

    any other suggestions?

    Thread Starter stoffuchs

    (@stoffuchs)

    anyone?

    Having limited information on what’s going on here, I’m going take an educated guess:

    I’ll bet that menu.js traverses the document, and creates a list of elements for manipulation, storing them in an object called list. Then, to work on the specific element, it pulls the first child of the list into a variable called node, and then manipulates node.

    For whatever reason the list object isn’t being populated properly.

    What have you changed recently between the time when it was working and the time when it stopped? Have you altered the template code? Perhaps you’ve removed a class that the js menu plugin needed to find the appropriate elements in the DOM to pull into the list?

    I’m just guessing here, as there’s not a whole lot of information to go on. But traipsing through the javascript and trying to determine why you wind up with an empty list is the next logical step, I think.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Navigation Menue Error’ is closed to new replies.