Help with this error on my webpage in IE

Hi There,
I have a web page here
http://byronbayrugby.com.au

I was shown this error from a viewing on IE7

I cannot reproduce it with IE8 or Firefox.

I was wondering if someone could show me why this is happening.  I have attached the index.php page that it occurs on....any idea?
<?php
/**
 * @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" 
<head>
<jdoc:include type="head" />
<?php
  $live_site        = $mainframe->getCfg('live_site');
	$menu_name        = $this->params->get("menuName", "mainmenu");
	$menu_type        = $this->params->get("menuType", "splitmenu");
	$menu_sidenav     = $this->params->get("menuSidenav", "left");
	$default_width    = $this->params->get("defaultWidth", "width");
	$default_font     = $this->params->get("defaultFont", "default");
	$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 1)  == 0)?"false":"true";
 
	// rokzoom options
	$enable_rokzoom   = ($this->params->get("enableRokzoom", 1)  == 0)?"false":"true";
	$zoom_resize_duration     = $this->params->get("zoom_resize_duration", "700");
	$zoom_opacity_duration     = $this->params->get("zoom_opacity_duration", "500");
	$zoom_transition   			  = $this->params->get("zoom_transition", "Cubic.easeOut");
 
	
 
    require(YOURBASEPATH .DS."/rt_styleloader.php");
 
	// menu code
		$document	= &JFactory::getDocument();
		$renderer	= $document->loadRenderer( 'module' );
		$options	 = array( 'style' => "raw" );
		$module	 = JModuleHelper::getModule( 'mod_mainmenu' );
		$mainnav = false; $subnav = false;
		if($mtype == "splitmenu") : 
			$module->params	= "menutype=$menu_name\nstartLevel=0\nendLevel=1";
			$mainnav = $renderer->render( $module, $options );
			$module	 = JModuleHelper::getModule( 'mod_mainmenu' );
			$options	 = array( 'style' => "submenu" );
			$module->params	= "menutype=$menu_name\nstartLevel=1\nendLevel=9";
			$subnav = $renderer->render( $module, $options );
		elseif($mtype == "suckerfish") : 								      	
			$module->params	= "menutype=$menu_name\nshowAllChildren=1";
			$mainnav = $renderer->render( $module, $options );
		elseif($mtype == "supersucker") :
			$module->params   = "menutype=$menu_name\nshowAllChildren=1";
			$mainnav = $renderer->render( $module, $options );
			$options	 = array( 'style' => "submenu" );
			$module	 = JModuleHelper::getModule( 'mod_mainmenu' );
			$module->params	= "menutype=$menu_name\nstartLevel=2\n";
			$subnav = $renderer->render( $module, $options );
		endif;
 
		// make sure subnav is empty
		if (strlen($subnav) < 10) $subnav = false;
 
// *************************************************
?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/header.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/<?php echo $menu_type; ?>.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/footer.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="shortcut icon" href="<?php echo $this->baseurl; ?>/images/favicon.ico" />
<script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/js/mootools-release-1.11.js"></script>
<?php if($enable_rokzoom=="true") :?>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/rokzoom/rokzoom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/rokzoom/rokzoom.js"></script>
<script type="text/javascript">
	window.addEvent('load', function() {
		RokZoom.init({
			imageDir: '<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/rokzoom/images/',
			resizeFX: {
				duration: <?php echo $zoom_resize_duration; ?>,
				transition: Fx.Transitions.<?php echo $zoom_transition; ?>,
				wait: true
			},
			opacityFX: {
				duration: <?php echo $zoom_opacity_duration; ?>,
				wait: false	
			}
		});
	});
</script>
<?php endif; ?>
<?php if($mtype=="suckerfish" or $mtype=="supersucker") :
	echo "<!--[if IE]>\n";		
  echo "<script type=\"text/javascript\" src=\"" . $this->baseurl . "/templates/" . $this->template . "/js/ie.js\"></script>\n";
  echo "<![endif]-->\n";
endif; ?>
<script src="DWConfiguration/ActiveContent/IncludeFiles/AC_RunActiveContent.js" type="text/javascript"></script>	
 
<style type="text/css">
<!--
more {
	color: #000;
}
#page_bg #mainbg #mainbody-padding #maincontainer #mainmenusection .maintab tr td table tr td p a {
	color: #000;
	font-weight: bold;
}
senior {
	text-align: center;
}
-->
</style>
</head>
<body id="page_bg" class="<?php echo $widthstyle; ?> <?php echo $fontstyle; ?>">
    <div id="mainbg">
		
	  <div id="wrapper">
           					
			          			
			          			<a href="<?php echo $this->baseurl; ?>" title=""></a>
			          			
   	  </div>
 
 
 
 
			            	
			            	<?php if($this->countModules('user1') || $this->countModules('user2') || $this->countModules('user3')) { ?>
			            	<div id="showcase">
			          			<div class="padding">
			          				<table class="showcase" cellspacing="0">
			          					<tr valign="top">
			          						<?php if($this->countModules('user1')) { ?>
			          						<td class="showcase">
			          							<jdoc:include type="modules" name="user1" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          						<?php if($this->countModules('user2')) { ?>
			          						<td class="showcase">
			          							<jdoc:include type="modules" name="user2" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          						<?php if($this->countModules('user3')) { ?>
			          						<td class="showcase">
			          							<jdoc:include type="modules" name="user3" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          					</tr>
			          				</table>
			          			</div>
			            	</div>
			            	<?php } ?>	
			          		<div id="mainbody-padding">
                            <body id="page_bg">
<div id="maincontainer">
<div id="mainmenusection">
 <table class="maintab" border="0">
      <tr><td height="80" colspan="5"><!--<div id="toolbar">
			          			<div id="nav">
									<?php if($mtype != "module") :
										echo $mainnav;
									else: ?>
										<jdoc:include type="modules" name="toolbar" style="none" />
									<?php endif; ?>
			          			</div>
			            	</div>-->
        <div id="navigation">
     
							<div id="centernav">
								<span id="topnav">
 
 
									<?php echo $topnav; ?>
									
									<?php mosLoadModules ( 'top' ); ?>
								</span>
								<div class="clr"></div>
		  </div>
	    </div>          <div class="my_top"><?php mosLoadModules ( 'user1' ); ?>
          </div></td>
      </tr>
      <tr>
        <td height="481" valign="top"><div class="my_left_menu">
          <?php mosLoadModules ( 'left' ); ?>
        </div>
          <table width="100%" height="439" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td colspan="2" rowspan="4" valign="top"><table width="318" height="431" border="0">
                <tr>
                  <td width="129" height="213">&nbsp;</td>
                  <td width="179" valign="top">&nbsp;</td>
                </tr>
                <tr>
                  <td height="173">&nbsp;</td>
                  <td align="center" valign="top"><a href="http://byronbayrugby.com.au/index.php?option=com_content&amp;view=article&amp;id=55&amp;Itemid=60">PHOTO GALLERIES</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td align="center"><a href="http://byronbayrugby.com.au/index.php?option=com_content&amp;view=article&amp;id=53&amp;Itemid=58"> &nbsp;&nbsp;SENIOR GALLERIES</a></td>
                </tr>
              </table></td>
              <td height="52" align="right" valign="bottom">&nbsp;</td>
               <td align="right" valign="bottom"><p style="z-index: 2"></p>
 
            </tr>
            <tr>
              <td width="6%" height="67" align="right" valign="bottom">&nbsp;</td>
              <td width="28%" align="right" valign="bottom">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
              <td height="128" valign="top"><?php mosLoadModules ( 'fixtures' ); ?></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td height="188">&nbsp;</td>
            </tr>
          </table>
        <p>&nbsp;</p></td>
        <td rowspan="2" valign="top">&nbsp;</td>
        <td width="261" height="481"rowspan="3" valign="top"><?php mosMainBody(); ?></td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td width="480" valign="top">&nbsp;</td>
        <td width="31" valign="top">&nbsp;</td>
        <td width="206" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="4" valign="top"><div class="my_footer"></div></td>
      </tr>
</table>
 
</div>
 
</div>
 
	  </div>		
			            	<?php if($this->countModules('user7') || $this->countModules('user8') || $this->countModules('user9') || $this->countModules('footer')) { ?>
			            	<div id="footer">
			          			<div class="padding">
			          				<table class="footer" cellspacing="0">
			          					<tr valign="top"> 
			          						<?php if($this->countModules('user7')) { ?>
			          						<td class="footer">
			          							<jdoc:include type="modules" name="user7" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          						<?php if($this->countModules('user8')) { ?>
			          						<td class="footer">
			          							<jdoc:include type="modules" name="user8" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          						<?php if($this->countModules('user9')) { ?>
			          						<td class="footer">
			          							<jdoc:include type="modules" name="user9" style="xhtml" />
			          						</td>
			          						<?php } ?>
			          					</tr>
			          				</table>
			          			</div>
			            	</div>
			            	<?php } ?>
</div>
					</div>
        		</div>
      		</div>	
		</div>
	</div>
	<div class="wrapper">
		
	</div>
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>

Open in new window

error.jpg
LVL 11
Amanda WatsonWeb DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ryangiglioCommented:
Hi snowball77,

Your error is occurring in the ie.js file being included on line 104.

There are two potential problems that I can see.  The first is that the div with id="nav" is commented out from line 168 - 176.  It may be that Firefox and IE are handling this multi-line comment differently.

Also, the problem might be that the ie.js file is being included and run before the browser actually renders the "nav" div.  Try moving that script include farther down the page after the div and its contents are created.

Hope that helps!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pmessanaCommented:
I would recommend getting Google Chrome and running the Javascript console on your page, your page has 13 errors, a lot of non-closing DIV tags, not sure if any of these could be the issue but Firefox may ignore the unmatched while IE cares about it more.  Fix these errors and then see what you get.

Another note, you are getting a 404 error on http://byronbayrugby.com.au/DWConfiguration/ActiveContent/IncludeFiles/AC_RunActiveContent.js

This file does not exist.

Hope this helps.
0
Amanda WatsonWeb DeveloperAuthor Commented:
Hi,
I removed the two pieces of code you mentioned ryangiglio:

Can anyone see the error anymore?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

ryangiglioCommented:
I'm not getting an error in IE7/8 anymore, so that particular issue is resolved, but you should take pmessana's comment into consideration to clean up the rest of the code.
0
pmessanaCommented:
I am not getting them in IE7, but I would still recommend you use Chrome and fix the 13 errors that are there.   You have a bunch of open <DIV> and these will come back to haunt you.

You can also run the W3C validator to find these errors as well.
0
Amanda WatsonWeb DeveloperAuthor Commented:
I don't want any  to haunt me!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.