Support Forums

Old 10-01-2009, 04:10 PM   #1
Junior Member
 
Join Date: Apr 2009
Posts: 22
Rep Power: 2
Ganineva is on a distinguished road
Default Validation errors

I've been trying to get my site to validate. One issue I have is with a <td> tag causing 27 errors. Commenting it out resulted in my only having 5 errors (I had 32 with the tag) which I am now trying to resolve.

Commenting out this tag doesn't seem to have caused a problem on my site (yet...I don't have ads right now so not sure what would happen when I do). I am using a custom template, but I never touched the code in question until now.

Not sure if my commenting out the <td> tag will create problems. Is the tag necessary here? I am not sure what the {/section} refers to so it is making it difficult for me to troubleshoot. To me it looks like the <td> tag is out of place and doesn't have a closing tag which is why there were errors.

Anyone have any insight/suggestion/advice???

Thank you!!

My site is: www.classypoints.com

Here is the code from the home.tpl file:

<table class="main" width="100%">
<tr>
<th>{$smarty.const.LANG_BROWSE_CATEGORY}</th>
</tr>
<tr>
<td>
<table width="100%">
{section name=tr loop=$data step=$cols}
<tr>
{section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols}
<td valign="top">
{if $data[td]<>""}
{$data[td].start_link}<img src="{$data[td].image}" border="0" alt="{$data[td].name}" /></a> 
{$data[td].start_link}<strong>{$data[td].name}</strong></a>
{if $data[td].total <> ''}
({$data[td].total})
{/if}
<br />
<!--{$data[td].subcats}-->
{$data[td].description}
{/if}
 
</td>
<!--<td>--><!--//this td tag when uncommented resulted in 27 errors-->
{/section}
</tr>
{/section}
</table>
</td>
</tr>
</table>
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
Ganineva is offline   Reply With Quote
Old 10-01-2009, 05:15 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,708
Rep Power: 49
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

You are correct and that <td> tag doesn't belong there. If my memory serves me correctly, I believe I already reported that as a bug.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-01-2009, 06:12 PM   #3
Junior Member
 
Join Date: Apr 2009
Posts: 22
Rep Power: 2
Ganineva is on a distinguished road
Default

Thank you!

I've got it down to 1 error without that tag. The following code is causing the remaining error:

<div id="newlistings">
<h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2>
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}
</div>


The above is outputting the following:

<div id="newlistings">
<h2>Featured Listings</h2>
<table width="100%" cellpadding="3" cellspacing="3">
</table>
</div>


When I validate, the above results in the following error:

end tag for "table" which is not finished
</table>
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 (ul, ol, dl) require list items (li, or dt, dd), and so on.


Do you have any idea why I'm getting that error and how I can fix it?

Thanks again.
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
Ganineva is offline   Reply With Quote
Old 10-01-2009, 06:25 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,498
Rep Power: 37
seymourjames has a spectacular aura about
Default

There is nothing in the table is there. It is empty of rows and columns or anything. Try putting some featured listings into your site. Then recheck.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 10-01-2009, 07:17 PM   #5
Junior Member
 
Join Date: Apr 2009
Posts: 22
Rep Power: 2
Ganineva is on a distinguished road
Default

I'll do that and recheck. I didn't realize the table tag required child tags or it wouldn't validate. First time I'm encountering that sort of issue. The error message makes much more sense now.

Thank you!
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
Ganineva is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ad Field Validation djstevie84 Feature Requests 1 10-15-2008 03:48 AM
w3.org Validation Problems bowers01 HTML, CSS, and Design Help 2 09-16-2008 07:10 AM
Code validation Nickb HTML, CSS, and Design Help 2 08-31-2007 11:16 AM
New user email validation Bucketman v3.0 Questions & Support 3 04-06-2006 10:05 AM


All times are GMT -4. The time now is 06:02 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0