PDA

View Full Version : Single XHTML Error I can't figure out...


adwade
03-21-2007, 03:46 PM
On my Main Forum Page (http://www.recumbentriders.org/forums/index.php), when I Check (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.recumbentriders.org%2Ff orums%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1) it through http://validator.w3.org it comes back with

Result: Failed validation, 1 error

This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 536, column 7: 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, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.


However, not being a coder I'm having a hard :confused: time figuring out what's causing that error? vBulletin, a MOD I've installed, my Style Sheets, etc. So I'm posting some info here in hopes someone can give me a hand and tell me where or how to figure out what the problem is. Any guidence would be much appreciated. :o

The section of code just above where the error occurs and is alright itself is:

# <!-- what's going on box -->
# <!-- Categoty Top -->
# <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
# <tr>
# <td width="21" height="31" align="left" valign="top" style="background-image: url(http://www.recumbentriders.org/forums/images/aria/misc/top_bg.gif)"><img border="0" src="http://www.recumbentriders.org/forums/images/aria/misc/top_left.gif" width="21" height="31" alt="" /></td>
# <td height="31" width="60%" align="left" valign="middle" style="background-image: url(http://www.recumbentriders.org/forums/images/aria/misc/top_bg.gif)"><div class="category_title"><b>What's Going On?</b></div></td>
# <td width="19" align="left" valign="middle"><img src="http://www.recumbentriders.org/forums/images/aria/misc/top_end.gif" alt="" width="19" height="31" border="0" /></td>
# <td align="right" valign="top" style="background-image: url(http://www.recumbentriders.org/forums/images/aria/misc/top_center.gif)"><img src="http://www.recumbentriders.org/forums/images/aria/misc/top_center.gif" alt="" /></td>
# <td width="14" height="31" align="right" valign="top"><img border="0" src="http://www.recumbentriders.org/forums/images/aria/misc/top_right.gif" width="14" height="31" alt="" /></td>
# </tr>
# </table>


While the error itself is in this section of code...
(Specifically, it tells me "Line 536, column 7: end tag for "table" which is not finished")
# <!-- /Categoty Top -->
#
#
# <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
#
#
#
#
#
#
#
#
#
# </table>
# <!-- Categoty Bottom -->


And lastly, the next section of code that is alright is

# <table width="100%" border="0" cellpadding="0" cellspacing="0">
# <tr>
# <td width="12" align="left" valign="top"><img src="http://www.recumbentriders.org/forums/images/aria/misc/blc.gif" width="12" height="13" alt="" border="0" /></td>
# <td width="100%" style="background-image:url(http://www.recumbentriders.org/forums/images/aria/misc/bottom.gif)"><img src="http://www.recumbentriders.org/forums/images/aria/misc/clear.gif" width="100%" height="13" alt="" border="0" /></td>
# <td width="12" align="right" valign="top"><img src="http://www.recumbentriders.org/forums/images/aria/misc/brc.gif" width="12" height="13" alt="" border="0" /></td>
# </tr>
# </table>
# <!-- /Categoty Bottom -->
#
# <!-- end what's going on box -->

TheMilkCarton
03-21-2007, 04:26 PM
I don't know if this explains it... but why do you have an empty table??

Edit: I think that since the W3C validator can't log in and see what's inside the "What's Going On" box, it's coming up with that error, maybe. Try hiding the What's Going On box to the unregistered usergroup with an if conditional. It's in FORUMHOME template.

Princeton
03-22-2007, 12:00 PM
your problem is the table

# <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
#
#
#
#
#
#
#
#
#
# </table>rewrite you html so that it doesn't display if not needed

a quick fix is to add an emtpy row/cell
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"><tr><td></td></tr></table>

adwade
03-22-2007, 05:07 PM
I don't know if this explains it... but why do you have an empty table??

Edit: I think that since the W3C validator can't log in and see what's inside the "What's Going On" box, it's coming up with that error, maybe. Try hiding the What's Going On box to the unregistered usergroup with an if conditional. It's in FORUMHOME template.

Well I went in and Disabled the entire WHO'S ONLINE MOD, but the exact same error still shows up.

I think you are right in the empty table is causing the problem. My problem is, WHAT is causing that empty table to appear? :mad: Not being a coder, I've tried searching for a few things but have yet to turn up what is generating that piece of code.

your problem is the table

rewrite you html so that it doesn't display if not needed

a quick fix is to add an emtpy row/cell
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"><tr><td></td></tr></table>

Thanxx for the tips, however I don't understand WHAT is generating that piece of code on my page, thus I'm clueless as WHAT to try and edit. If it's a MOD, I'm assuming the .xml file I imported would have this empty table in it somewhere. But as I said, I've looked (as best as I know how to) for it.

I'm wondering if it could be my CSS? I'm using vBstyles (http://www.vbstyles.com/) ARIA Skins, and sadly understand them even less than other stuff so far. AMAZING stuff indeed (to the novice), but no-so-simple to follow thru when you don't understand how it does what it does.:(

Princeton
03-24-2007, 05:05 AM
it could be a mod (plugin)