If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / site not passing validator because of unclosed <td> tag?

site not passing validator because of unclosed <td> tag?

Started by bonnit on 31 Jan 2011, 1:54 PM · Views: 5,403

Results 1 to 15 of 15
31 Jan 2011, 1:54 PM
#1
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Post #1 by bonnit

my site was launched today after completing over the weekend, it passed the w3c validator previously but a few days on it is throwing up 7 errors and two warnings, which i cannot for the life of me figure out 1. why they've now shown up and 2. what i need to do to fix this. ive not made any huge alterations and i haven't overwritten any module page/core pages since completing and validating the first time, only changes have been mainly language files and css.

i wonder i anyone could maybe take a look and give me some advice on this please?

http://validator.w3.org/check?uri=www.livvylou.co.uk&charset=%28detect+automatically%29&doctype=Inline&group=0

my site: http://www.livvylou.co.uk

thanks in advance :)

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

3 Feb 2011, 12:29 PM
#2
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Post #2 by bonnit

i have tried but i really could use some help on this if anyone knows how? i have included the errors and source below.

Validation Output: 7 Errors

   1. Error Line 424, Column 6: end tag for "td" omitted, but OMITTAG NO was specified

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   2. Info Line 149, Column 5: start tag was here

          <td valign="top">

   3. Error Line 424, Column 6: end tag for "tr" omitted, but OMITTAG NO was specified

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   4. Info Line 70, Column 3: start tag was here

        <tr>

   5. Error Line 424, Column 6: end tag for "table" omitted, but OMITTAG NO was specified

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   6. Info Line 69, Column 1: start tag was here

      <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainW…

   7. Error Line 425, Column 5: end tag for element "td" which is not open

      </td>

      ✉

      The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

      If this error occurred in a script section of your document, you should probably read this FAQ entry.
   8. Error Line 427, Column 7: end tag for element "tr" which is not open

        </tr>

      ✉

      The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

      If this error occurred in a script section of your document, you should probably read this FAQ entry.
   9. Error Line 428, Column 8: end tag for element "table" which is not open

      </table>

      ✉

      The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

      If this error occurred in a script section of your document, you should probably read this FAQ entry.
  10. Error Line 469, Column 6: end tag for element "div" which is not open

      </div>

      ✉

      The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

      If this error occurred in a script section of your document, you should probably read this FAQ entry.

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

23 Jun 2011, 10:42 PM
#3
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #3 by moesoap

The same is happening to me, does any one have a solution to this?

23 Jun 2011, 10:48 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,914
Plugin Contributions:
24

Post #4 by dbltoe

Although bonnit has apparently fixed the td problem, there are still problems with the site.
This I know because we were given a link to look at.
Give us a link and we can help you better.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Jun 2011, 10:59 PM
#5
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #5 by moesoap

Thanks for replying.

Its on my local server, can you suggest any way to provide you with this?

The validator gives this error:

Validation Output: 7 Errors

    Error Line 297, Column 6: end tag for "td" omitted, but OMITTAG NO was specified

    </div>

    ✉

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    Info Line 136, Column 1: start tag was here

    <td valign="top">

    Error Line 297, Column 6: end tag for "tr" omitted, but OMITTAG NO was specified

    </div>

    ✉

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    Info Line 128, Column 3: start tag was here

      <tr>

    Error Line 297, Column 6: end tag for "table" omitted, but OMITTAG NO was specified

    </div>

    ✉

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    Info Line 127, Column 1: start tag was here

    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainW…

    Error Line 298, Column 5: end tag for element "td" which is not open

    </td>

    ✉

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    Error Line 300, Column 7: end tag for element "tr" which is not open

      </tr>

    ✉

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    Error Line 301, Column 8: end tag for element "table" which is not open

    </table>

    ✉

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    Error Line 371, Column 6: end tag for element "div" which is not open

    </div>

    ✉

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.

It starts from <td="valign"> on the main page. I have not made any changes from the default template, if this helps?

23 Jun 2011, 11:46 PM
#6
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #6 by moesoap

it's only 7 errors, i guess i'll learn how to live with it , ive tried to fix this for hours :yuck:

24 Jun 2011, 1:32 PM
#7
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #7 by moesoap

moesoap:

it's only 7 errors, i guess i'll learn how to live with it , ive tried to fix this for hours :yuck:

Okay, I thought I could let this go, but I can't.

I tried validating using the original default template code within tpl_main_page.php however I receive the same error, so I am guessing this is not a result of my html skills and the problem originates with the Zen Cart code.

The problem seems to come from how the template pulls in <div class="content" id="indexDefaultMainContent"> as when i use firebug it shows that TD Valign=Top comes before that line, however the div doesn't close until the bottom of the table.

I cant see a way to change the order of these divs. Can someone please offer a fix?

Thanks.

24 Jun 2011, 2:02 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #8 by stevesh

Problem is, a stock Zencart installation validates fine, so it has to be something you've added or changed.

It's difficult to offer advice for a problem with a local installation, as we can't look at the lines and characters the validator is complaining about.

24 Jun 2011, 2:07 PM
#9
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #9 by moesoap

Hi Stevesh,

Here is my tpl_main_page.php code it does differ slightly from original however when I placed original in it still gave the same errors. I will post the validator response next. Thanks for any help.

<?php
// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  }


  $header_template = 'tpl_header.php';
  $footer_template = 'tpl_footer.php';
  $left_column_file = 'column_left.php';
  $right_column_file = 'column_right.php';
  $body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?php
  if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>
<div id="mainWrapper">
<?php
 /**
  * prepares and displays header output
  *
  */
  if ($this_is_home_page)  {
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
}
else
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<?php
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_header = true;
  }
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
  <tr>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_left
  $flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<?php
if ($this_is_home_page) {
$flag_disable_right = true;
$flag_disable_left = true;
}
?>

<?php
 /**
  * prepares and displays left column sideboxes
  *
  */
?>
<?php
}
?>
<td valign="top">
<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->

<?php
  if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>

<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->

<?php
 /**
  * prepares and displays center column
  *
  */
 require($body_code); ?>

<?php
  if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?></td>

<?php
//if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_right
  $flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>

<?php
}
?>
  </tr>
</table>

<?php
 /**
  * prepares and displays footer output
  *
  */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_footer = true;
  }
  require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>

</div>
<!--bof- parse time display -->
<?php
  if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
  }
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
  if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>
<!--eof- banner #6 display -->
</body>
24 Jun 2011, 2:25 PM
#10
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #10 by moesoap

Validator Response: ```
Validation Output: 7 Errors

Error Line 296, Column 6: end tag for "td" omitted, but OMITTAG NO was specified

</div>

✉

.
Info Line 130, Column 1: start tag was here

<td valign="top">

Error Line 296, Column 6: end tag for "tr" omitted, but OMITTAG NO was specified

</div>

✉


Info Line 128, Column 3: start tag was here

  <tr>

Error Line 296, Column 6: end tag for "table" omitted, but OMITTAG NO was specified

</div>

✉

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 127, Column 1: start tag was here

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainW…

Error Line 298, Column 5: end tag for element "td" which is not open

</td>

✉

Error Line 300, Column 7: end tag for element "tr" which is not open

  </tr>

✉




Error Line 301, Column 8: end tag for element "table" which is not open

</table>

✉


Error Line 371, Column 6: end tag for element "div" which is not open

</div>

<!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" dir="ltr" lang="en">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
<base href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/pnwtemplate/css/print_stylesheet.css" />
<link rel="stylesheet" type="text/css" href="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/css/stylesheet1.css" />
<link rel="stylesheet" type="text/css" href="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" href="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/css/stylesheet_flexible_product_listing.css" />
<link rel="stylesheet" type="text/css" href="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/css/stylesheet_zen_lightbox.css" />
<script type="text/javascript" src="/zen-cart-v1.3.9b-full-fileset-04302010/includes/templates/pnwtemplate/jscript/jscript_jquery-1.5.min.js.js"></script>
<script type="text/javascript" src="/zen-cart-v1.3.9b-full-fileset-04302010/includes/modules/pages/index/jscript_easySlider1.7.js"></script>
<script type="text/javascript" src="/zen-cart-v1.3.9b-full-fileset-04302010/includes/modules/pages/index/jscript_easyslider_settings.js"></script>
<style media="all" type="text/css">@import "menu/menu_style.css";</style>
</head>
<body id="indexHomeBody">
<div id="mainWrapper">
<!--bof-header logo and navigation display-->
<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li class="colour"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=account">My Account</a> |</li>
<li class="colour"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=login">Log In</a> |</li>
<li class="colour"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=customer_service">Customer Service</a> |</li>
<li class="colour"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=shopping_cart">Shopping Cart</a> |</li>
<li class="colour"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=contact_us">Contact Us</a></li>
</ul>
</div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/"><img src="includes/templates/pnwtemplate/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="229" height="72" /></a></div>
<div id="taglineWrapper">
<div id="tagline">
<br />
<br />
<a href="" id="newnavlink1">Home</a>
<a href="" id="newnavlink2">Upload Artwork</a>
<a href="" id="newnavlink3">Trade Sign In</a>
</div>
</div>
</div>
<div id="navnew"><div class="menu">
<div class="linkstop">
<ul>
<li><a href="" target="_self" >Posters</a>
<ul>
<li><a href="" target="_self">A0 Posters</a></li>
<li><a href="" target="_self">A1 Posters</a></li>
<li><a href="" target="_self">A2 Posters</a></li>
<li><a href="" target="_self">A3 Posters</a></li>
<li><a href="" target="_self">A4 Posters</a></li>
</ul>
</li>
<li><a href="" target="_self" >Leaflets</a>
<ul>
<li><a href="" target="_self">Printed One-Side</a></li>
<li><a href="" target="_self">Printed Two-Sides</a></li>
</ul>
</li>
<li><a href="" target="_self" >Business Stationary</a>
<ul>
<li><a href="" target="_self">Business Cards</a></li>
<li><a href="" target="_self">Letterheads</a></li>
<li><a href="" target="_self">Compliment Slips</a></li>
<li><a href="" target="_self">Stationary Pack</a></li>
<li><a href="" target="_self">Oversized Folders</a></li>
</ul>
</li>
<li><a href="" target="_self" >Postcards</a>
<ul>
<li><a href="" target="_self">Printed One-Side</a></li>
<li><a href="" target="_self">Printed Two-Sides</a></li>
</ul>
</li>
<li><a href="" target="_self" >Booklets</a>
<ul>
<li><a href="" target="_self">A4 Booklets Heavy Cover</a></li>
<li><a href="" target="_self">A4 Booklets Self Cover</a></li>
<li><a href="" target="_self">A5 Booklets Heavy Cover</a></li>
<li><a href="" target="_self">A5 Booklets Self Cover</a></li>
</ul>
</li>
</ul>
</div></div>
<div id="navMainSearch"><form name="quick_find_header" action="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="6" maxlength="50" class="topSearch" style="width: 100px; height: 15px; text-indent: 1px" value="Enter Search" onfocus="if (this.value == 'Enter Search') this.value = '';" onblur="if (this.value == '') this.value = 'Enter Search';" />  <input type="image" src="includes/templates/pnwtemplate/buttons/english/button_search.gif" value="" style="height:20px;width:60px" /></form> </div></div>
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--bof-optional categories tabs navigation display-->
<!--eof-optional categories tabs navigation display-->
<!--bof-header ezpage links-->
<!--eof-header ezpage links-->
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
<tr>
<td valign="top">
<!-- bof breadcrumb -->
<!-- eof breadcrumb -->
<!-- bof upload alerts -->
<!-- eof upload alerts -->
<!--<div class="centerColumn" id="indexDefault">-->
<!--<h2 class="greeting"></h2>
-->
<!-- deprecated - to use uncomment this section
<div id="" class="content">This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong></div>
-->
<!-- deprecated - to use uncomment this section
<div id="" class="content">Define your main Index page copy here.</div>
-->
<div id="mainimage"><script language="javascript" type="text/javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript" type="text/javascript"></script><script language="javascript" type="text/javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '680',
'height', '250',
'src', 'index1',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'index1',
'bgcolor', '#eeeeee',
'name', 'index1',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index1',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object type="application/x-shockwave-flash"
data="c.swf?path=index1.swf"
width="680" height="250">
<param name="allowScriptAccess"
value="sameDomain" />
<param name="allowFullScreen"
value="false" />
<param name="bgcolor"
value="#eeeeee" />
<param name="movie"
value="c.swf?path=index1.swf" />
<param name="quality"
value="high" />
<param name="wmode"
value="transparent" />
<img src="noflash.gif"
width="200" height="100" alt="" />
</object></noscript></div>
<div id="rightimage"><img width="200" height="353" src="includes/templates/pnwtemplate/images/rightimage.gif" alt="Reasons to buy" /></div>
<div id="mainspecial">
<!-- bof Easy Slider 1.7 -->
<div id="container">
<div id="content">
<div id="slider">
<ul>
<li>
<!-- bof: specials -->
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_13_26&products_id=874"><img src="images/summer-barbeque-flyer.gif" alt="1/3 A4 Leaflets 120 Laser" title=" 1/3 A4 Leaflets 120 Laser " width="54" height="70" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_13_26&products_id=874">1/3 A4 Leaflets 120 Laser</a><br /><span class="normalprice">£99.00 </span> <span class="productSpecialPrice">£99.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_16&products_id=845"><img src="images/poster_design.jpg" alt="210x396 Leaflets 120 Laser" title=" 210x396 Leaflets 120 Laser " width="100" height="66" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_16&products_id=845">210x396 Leaflets 120 Laser</a><br /><span class="normalprice">£98.00 </span> <span class="productSpecialPrice">£98.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=3_38&products_id=523"><img src="images/poster_design.jpg" alt="A4 Posters 170 Gloss" title=" A4 Posters 170 Gloss " width="100" height="66" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=3_38&products_id=523">A4 Posters 170 Gloss</a><br /><span class="normalprice">£94.00 </span> <span class="productSpecialPrice">£94.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<!-- eof: specials -->
</li>
<li>
<!-- bof: specials -->
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_14&products_id=404"><img src="images/poster_design.jpg" alt="1/3 A4 Leaflets 170 Silk" title=" 1/3 A4 Leaflets 170 Silk " width="100" height="66" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_14&products_id=404">1/3 A4 Leaflets 170 Silk</a><br /><span class="normalprice">£96.00 </span> <span class="productSpecialPrice">£96.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_13_26&products_id=874"><img src="images/summer-barbeque-flyer.gif" alt="1/3 A4 Leaflets 120 Laser" title=" 1/3 A4 Leaflets 120 Laser " width="54" height="70" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_13_26&products_id=874">1/3 A4 Leaflets 120 Laser</a><br /><span class="normalprice">£99.00 </span> <span class="productSpecialPrice">£99.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<div class="centerBoxContentsSpecials centeredContent back" style="width:33%;"><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_16&products_id=845"><img src="images/poster_design.jpg" alt="210x396 Leaflets 120 Laser" title=" 210x396 Leaflets 120 Laser " width="100" height="66" /></a><br /><a href="http://example.com/zen-cart-v1.3.9b-full-fileset-04302010/index.php?main_page=product_info&cPath=12_2_16&products_id=845">210x396 Leaflets 120 Laser</a><br /><span class="normalprice">£98.00 </span> <span class="productSpecialPrice">£98.00</span><span class="productPriceDiscount"><br />Save: 0% off</span></div>
<!-- eof: specials -->
</li>
</ul>
</div>
</div>
</div>
<!-- eof Easy Slider 1.7 -->
</div>
<div id="centercontenttitle" class="title"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><p class="margin">Shop By Category</p></td><td><p class="margin1">Shop By Product</p></td><td><p class="margin2">Shop By Custom</p></td></tr></table></div>
<br />
<div id="contentleft"><table border="0" width="130" cellpadding="0" cellspacing="0">
<tr>
<td><p>Posters<br /><br />Leaflets/Flyers<br /><br />Business Stationary<br /><br />Postcards<br /><br />Promo Cards<br /><br />Booklets<br />
<br />Embroidered Clothing<br /><br />Nightclub Promo Packs<br /><br />Ultimate Nightclub Packs</p></td></tr></table>
<div class="title3">Important Links/Guides</div>
<table border="0" width="130" cellpadding="0" cellspacing="0">
<tr><td><p>Artwork Guides<br /><br />Printing Templates<br /><br />Direct Marketing<br /><br />Become a Reseller<br /><br />Graphic Design<br /><br />Delivery Information<br />
<br />Returns Policy<br /><br />Terms & Conditions<br /><br />Privacy Policy</p></td></tr></table></div>
<div id="contentmiddle"><div class="title1">Printed 1-Side</div>
<table border="0" width="550" cellpadding="2" cellspacing="2">
<tr><td>1/3 A4 Flyers</td><td>210x198 Flyers</td><td>210x396 Flyers</td><td>55x85 Flyers</td></tr>
<tr><td>6pp A4 Flyers</td><td>6pp A5 Flyers</td><td>A2 Flyers</td><td>A3 Flyers</td></tr>
<tr><td>A4 Flyers</td><td>A5 Flyers</td><td>A6 Flyers</td><td>A7 Flyers</td></tr>
<tr><td>A0 Posters</td><td>A1 Posters</td><td>A2 Posters</td><td>A3 Posters</td></tr>
<tr><td>A4 Posters</td><td>1/3 A4 Promo Cards</td><td>210x198 Promo Cards</td><td>A4 Promo Cards</td></tr>
<tr><td>A5 Promo Cards</td><td>A6 Promo Cards</td><td>85x55 Business Cards</td><td>1/3 A4 Compliment Slips</td></tr>
<tr><td>A4 Letterheads</td><td>A5 Letterheads</td><td>Stationary Packs</td><td>Oversized Folders</td></tr>
<tr><td>1/3 A4 Postcards</td><td>210x198 Postcards</td><td>A4 Postcards</td><td>A5 Postcards</td></tr>
<tr><td>A6 Postcards</td><td>Nightclub Promo Packs</td><td>Ultimate Nightclub Pack</td></tr></table>
<br />
<div class="title1">Printed 2-Sides</div>
<table border="0" width="550" cellpadding="2" cellspacing="2">
<tr><td>1/3 A4 Flyers</td><td>210x198 Flyers</td><td>210x396 Flyers</td><td>55x85 Flyers</td></tr>
<tr><td>6pp A4 Flyers</td><td>6pp A5 Flyers</td><td>A2 Flyers</td><td>A3 Flyers</td></tr>
<tr><td>A4 Flyers</td><td>A5 Flyers</td><td>A6 Flyers</td><td>A7 Flyers</td></tr>
<tr><td>A0 Posters</td><td>A1 Posters</td><td>A2 Posters</td><td>A3 Posters</td></tr>
<tr><td>A4 Posters</td><td>1/3 A4 Promo Cards</td><td>210x198 Promo Cards</td><td>A4 Promo Cards</td></tr>
<tr><td>A5 Promo Cards</td><td>A6 Promo Cards</td><td>85x55 Business Cards</td><td>1/3 A4 Compliment Slips</td></tr>
<tr><td>A4 Letterheads</td><td>A5 Letterheads</td><td>Stationary Packs</td><td>Oversized Folders</td></tr>
<tr><td>1/3 A4 Postcards</td><td>210x198 Postcards</td><td>A4 Postcards</td><td>A5 Postcards</td></tr>
<tr><td>A6 Postcards</td><td>Nightclub Promo Packs</td><td>Ultimate Nightclub Packs</td></tr></table>
<br />
<div class="title1">Booklets/Catalogues</div>
<table border="0" width="550" cellpadding="2" cellspacing="2">
<tr><td>A4 Heavy Cover</td><td>A4 Self Cover</td><td>A5 Heavy Cover</td><td>A5 Self Cover</td></tr>
</table>
<br />
<div class="title2">Embroidered Clothing/Workwear</div>
<table border="0" width="550" cellpadding="2" cellspacing="2">
<tr><td>Polo Shirts</td><td>Sweatshirts</td><td>Hoodies</td><td>T-Shirts</td><td>Jackets</td></tr>
</table></div>
<div id="contentright"><table width="130" border="0" cellspacing="0" cellpadding="0">
<tr><td><p>Accounting<br /><br />Bars<br /><br />Beauty & Cosmetic<br /><br />Building & Construction<br /><br />Car & Accessories<br /><br />Catering
<br /><br />Computer & Internet<br /><br />Community Events<br /><br />Electrical & Electronic<br /><br />Estate Agents<br /><br />Florist<br /><br />Hardware<br /><br />Joiners<br /><br />Motorcycle<br /><br />
Nightclubs<br /><br />Pets & Accessories<br /><br />Plumbers<br /><br />Solicitors<br /><br />Special Events<br /><br />Travel & Leisure</p></td></tr></table></div>
<br />
<br />
</div>
</td>
</tr>
</table>
<div id="footernav">
<br /><br />
<table cellspacing="0" cellpadding="0" border="0" width="930">
<tbody>
<tr>
<td width="150"><a href="http://www.example.com/store/index.php?main_page=about_us" class="dropdown"></a></td>
<td width="200"><div class="spacing12"><a href="http://www.example.com/store/index.php?main_page=index&cPath=12" class="dropdown"></a></div></td>
<td width="150"><div class="spacing11"><a href="http://www.example.com/store/index.php?main_page=index&cPath=4" class="dropdown"></a></div></td>
<td width="150"><a href="http://www.example.com/store/index.php?main_page=index&cPath=3" class="dropdown"></a></td>
<td width="200"><a href="" class="dropdown"></a></td>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0" cellpadding="0" border="0" width="930">
<tbody>
<tr>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="150"><div class="spacing12"><a href="" class="dropdown"></a></div></td>
<td width="150"><div class="spacing11"><a href="" class="dropdown"></a></div></td>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="200"><a href="" class="dropdown"></a></td>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0" cellpadding="0" border="0" width="930">
<tbody>
<tr>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="150"><div class="spacing12"><a href="" class="dropdown"></a></div></td>
<td width="150"><div class="spacing11"><a href="" class="dropdown"></a></div></td>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="150"><a href="" class="dropdown"></a></td>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0" cellpadding="0" border="0" width="930">
<tbody>
<tr>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="150"><div class="spacing12"><a href="" class="dropdown"></a></div></td>
<td width="150"><div class="spacing11"><a href="" class="dropdown"></a></div></td>
<td width="150"><a href="" class="dropdown"></a></td>
<td width="150"><a href="" class="dropdown"></a></td>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0" cellpadding="0" border="0" width="930">
<tbody>
<tr>
<td width="150"><a href="</a></td>
<td width="150"><div class="spacing12"><a href="" class="dropdown">Artwork Guide</a></div></td>
<td width="150"><div class="spacing11"><a href="" class="dropdown"></a></div></td>
<td width="150"><a href="" class="dropdown">Trade Partner</a></td>
<td width="150"><a href="" class="dropdown">Sitemap</a></td>
</tr>
</tbody>
</table>
<br /></div>
</div>
<!--bof- parse time display -->
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<!--eof- banner #6 display -->
</body></html>
24 Jun 2011, 2:31 PM
#11
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #11 by moesoap

The issue is the div just above the footer. It comes from the section of code that brings in the centerbox. I have no idea why it creates this div, and when i remove the centerbox the page layout is ruined but the div is gone and the template validates with the exception of a few warnings.

:unsure:

24 Jun 2011, 3:24 PM
#12
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #12 by moesoap

[B]</div>[/B]
    </td>
    </tr>
    </table>
    <div id="footernav">

The issue is this div, I have no idea why it is there? Any suggestions?

24 Jun 2011, 3:51 PM
#13
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #13 by moesoap

Solved Hallelujah!!! :clap:

There was an orphaned div inside tpl_index_default.php

I was pulling my hair out over this and it turned out to be so simple. Thanks to all who tried to help.

25 Jun 2011, 2:55 AM
#14
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #14 by gilby

moesoap:

Solved Hallelujah!!! :clap:

There was an orphaned div inside tpl_index_default.php

I was pulling my hair out over this and it turned out to be so simple. Thanks to all who tried to help.

Not sure you have solved it, maybe just "patched it"
What version of zen-cart are you using??

Just had a look at tpl_index_default.php v1.3.9h
It contains 7 divs, all should be there, none are "orphaned"

If editing this fixes your problem then your problem is probably in the one of the mods that you have installed.
You should fix the problem in the mod itself and not hack tpl_index_default.php to make it work.

25 Jun 2011, 8:02 PM
#15
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Post #15 by moesoap

Hi Gilby,

This was an orphan created by me, I think?

It sat right at the bottom of the page. The rest of the site passes validation, so don't think there is a problem anywhere else.