Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with this error on my webpage in IE

Posted on 2009-07-13
6
Medium Priority
?
333 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:Amanda Watson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
ryangiglio earned 1000 total points
ID: 24844858
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
 
LVL 9

Expert Comment

by:pmessana
ID: 24844906
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
 
LVL 11

Author Comment

by:Amanda Watson
ID: 24845008
Hi,
I removed the two pieces of code you mentioned ryangiglio:

Can anyone see the error anymore?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:ryangiglio
ID: 24845052
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
 
LVL 9

Assisted Solution

by:pmessana
pmessana earned 1000 total points
ID: 24845731
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
 
LVL 11

Author Closing Comment

by:Amanda Watson
ID: 31603056
I don't want any  to haunt me!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question