Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

2 validation errors on all product pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-27-2013, 02:18 AM
  fordy3's Avatar 
fordy3 fordy3 is offline
 

Advanced Member
  
Join Date: May 2006
Location: Yorkshire, England
Posts: 65
 

Default 2 validation errors on all product pages

Hello all,

Getting 2 validation errors on my product pages and at a bit of a loss how to solve these. Any help appreciated.

Validation Output: 2 Errors
Error Line 310, Column 9: end tag for "tr" which is not finished
</tr>
Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.
Error Line 343, Column 15: end tag for "tr" which is not finished
</tr>
Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.

*********
<table cellspacing="0" class="product-properties" summary="Description">
<tr>
</tr> ********** LINE 310

*********


*********
<table class="save_table">
<tr>
<td valign="top">
<div>
<span class="product-price-value"><span class="currency">&pound;<span id="product_price">5.99</span></span></span>
<span class="product-market-price"></span>
</div>
</td>
</tr>
<tr>
</tr> *********** LINE 343
</table>
</td>
</tr>
<tr>
<td colspan="3"><div id="wl-prices" style="display: none;">
*********
__________________
David Ford
http://youroldbooksandmaps.co.uk

X-Cart Gold Version 4.6.0
Reply With Quote
  #2  
Old 09-27-2013, 08:57 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: 2 validation errors on all product pages

Yes, I see the errors on your product page. The table rows <tr> are started and closed </tr> but there is no columns <td></td> inside.

Take a look at the template that controls this page.customer/main/product_details.tpl

I see in the original templates you may have removed the sku number from the page:
Code:
<tr> <td class="property-name property-name2">{$lng.lbl_sku}</td> <td class="property-value" id="product_code" colspan="2">{$product.productcode|escape}</td> </tr>

You need to also remove the <tr></tr> tags.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
fordy3 (09-27-2013)
  #3  
Old 09-27-2013, 09:31 AM
  fordy3's Avatar 
fordy3 fordy3 is offline
 

Advanced Member
  
Join Date: May 2006
Location: Yorkshire, England
Posts: 65
 

Default Re: 2 validation errors on all product pages

Thanks for that. Still 1 error though line 341.
There are 14 pairs of <tr></tr> in product_details.tpl, so its coming from somewhere else methinks??





Quote:
Originally Posted by totaltec
Yes, I see the errors on your product page. The table rows <tr> are started and closed </tr> but there is no columns <td></td> inside.

Take a look at the template that controls this page.customer/main/product_details.tpl

I see in the original templates you may have removed the sku number from the page:
Code:
<tr> <td class="property-name property-name2">{$lng.lbl_sku}</td> <td class="property-value" id="product_code" colspan="2">{$product.productcode|escape}</td> </tr>

You need to also remove the <tr></tr> tags.
__________________
David Ford
http://youroldbooksandmaps.co.uk

X-Cart Gold Version 4.6.0
Reply With Quote
  #4  
Old 09-27-2013, 10:08 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: 2 validation errors on all product pages

Same template, I think you removed the product notifications and left the <tr></tr>
Original code:
Code:
<tr> {if $active_modules.Product_Notifications ne '' and $config.Product_Notifications.prod_notif_enabled_P eq 'Y' and ($product.taxed_price ne 0 or $variant_price_no_empty)} <td> {include file="modules/Product_Notifications/product_notification_request_button.tpl" productid=$product.productid type="P"} </td> {/if} </tr>

I would search for <tr> in the template and look for one that has no <td>.

Look around line 100. I'm really just shooting in the dark though.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 09-27-2013, 10:16 AM
  fordy3's Avatar 
fordy3 fordy3 is offline
 

Advanced Member
  
Join Date: May 2006
Location: Yorkshire, England
Posts: 65
 

Default Re: 2 validation errors on all product pages

I looked at that so tried with an original file, the same 1 error.

Thanks for your help[ though - much appreciated.
__________________
David Ford
http://youroldbooksandmaps.co.uk

X-Cart Gold Version 4.6.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:22 PM.

   

 
X-Cart forums © 2001-2020