This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

[Request]Help Resolve 3 errors in the Validator

Support for your styles questions
Forum rules
** AND PLEASE PROVIDE A LINK TO YOUR SITE THAT YOU NEED HELP WITH! OR I MIGHT NOT HELP YOU **
Post Reply
victory1

[Request]Help Resolve 3 errors in the Validator

Post by victory1 »

Help me resolve 2 of the 3 errors. I believe #2 is because I have hidden boards. I have that one in both of my styles. #1 & #3 is what I need help with.

#1 is because I put <br /> tag after the <body> tag in overall_header.html because I wanted a space on top of my wrap.
#3 is because I put <br /> tag after the </body> tag in overall_footer.html because I wanted a space at the bottom.
So the validator does not like these 2 <br /> tags but that's how the phpBB.com board to do to add the inch to the top & bottom and it worked.

Validation Output: 3 Errors

Code: Select all

   1. Error Line 196, Column 6: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

      <br />

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   2. Error Line 817, Column 8: end tag for "ul" which is not finished

      			</ul>

      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.
   3. Error Line 1030, Column 6: document type does not allow element "br" here

      <br />   

      The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

      One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Last edited by victory1 on Thu Jul 21 2011 11:41 am, edited 1 time in total.
User avatar
Ooopsie
ooopsie
ooopsie
Posts: 1046
Joined: Sat Sep 25 2010 12:15 pm
Real name: Guito :)
Country Flag: United States
Location: Index, WA. or the State of Shock most of the time.
Contact:

Re: [Request]Help Resolve 3 errors in the Validator

Post by Ooopsie »

I have some of those type of errors too in the validator. I ignore them as that is what PhpBB wants me to do. So, no, I don't have an answer... :(
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
ALWAYS BACK-UP BEFORE MAKING CHANGES TO YOUR DATABASE OR FILES. ALWAYS!!!!

Do not PM me asking for support unless invited to do so. Use the forums.
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: [Request]Help Resolve 3 errors in the Validator

Post by cisco007 »

to make it easier look at this one:
http://validator.w3.org/check?uri=http% ... ator%2F1.2

it makes it easier to see exactly where the errors are, seems this style gives 3 errors and the default error gives 1 error!
click on the number of the error, and it tells you where the error lies and is, then you can look at that file in your style and try to fix them i know for certain that the </ul> error is probably because you are using this on your menu, and you probably have [c]<!-- IF not S_IS_BOT --><!-- ENDIF -->[/c] or something like that warpping your menu after the opening [c]<ul>[/c] the validator bot can only see the other stuff and not the content, you best bet is to either move the [c]IF[/c] statement before the opening [c]<ul>[/c] tag or remove it! might be the same thing with the other errors!
or you might want to use [c]<br style="clear:both;" />[/c] instead of [c]<br/>[/c] if you really need to use those tags which you shouldn't really need to!
Image
victory1

Re: [Request]Help Resolve 3 errors in the Validator

Post by victory1 »

[c]<br style="clear:both;" />[/c] gives the same error as the [c]<br />[/c] tag.

Anyway when I asked on the phpBB.com style support board 6 months ago, how to add an inch to the top and the bottom of the board for that style, I was told to use [c]<br />[/c] tags. They even told me where to place them. How can I achieve that without the [c]<br />[/c]tags?
Last edited by victory1 on Thu Jul 21 2011 2:24 am, edited 1 time in total.
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: [Request]Help Resolve 3 errors in the Validator

Post by cisco007 »

i really can't tell what style you are using so i can't tell what codes it is using but that edit i gave you shouldn't give you an error, it just has to do with what ever other code tags that style is using which seems to be in the overall_header/footer files! maybe you should try to maybe add some [c]padding-top:XXpx;[/c] to the [c]<div id="wrap">[/c] and some [c]padding-bottom:XXpx;[/c] to the [c]<div id="page-footer">[/c] play with the numbers until you get it how you want it!
Image
victory1

Re: [Request]Help Resolve 3 errors in the Validator

Post by victory1 »

OK, fixed the 2 [c]<br />[/c] tag errors by removing them. Placing this [c]padding: 12px 12px;[/c] inside [c]body {[/c] in the theme/common.css file added the space on top and bottom. ;)
Now I just have to figure out the [c]</ul>[/c] error in both the Red Steel & Extremedark red style. I know you said it's in my overall_header.html file and I've found it (there's only 1 [c]<ul>[/c] tag in the entire file for the menu. Moving it around, just mess up my menu. But I'll keep trying.

Thanks
User avatar
Sniper_E
Support Team
Support Team
Posts: 197
Joined: Fri May 06 2011 3:09 pm
Real name: Ed
Country Flag: United States
Location: Shreveport, LA

Re: [Request]Help Resolve 3 errors in the Validator

Post by Sniper_E »

The first <br /> was on line 196. The </ul> was on line 817. The last <br /> was on line 1030.
So the bad </ul> is located closer to the 2nd <br /> by the report wich you said was in the footer.
The index page shows the overall_header, index_body, formlist_body and the overall_footer.
Look for that bad </ul> in those other templates. The one in the overall_header may not be the bad one.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
victory1

Re: [Request]Help Resolve 3 errors in the Validator

Post by victory1 »

I found this topic on phpBB.com http://www.phpbb.com/community/viewtopi ... 85&start=0
Come to find out it is because I have a hidden category & forum from bot (My Staff Forum). So I gave Bot Access to Bots for just the forum but edit it to can only see forum and put never in the other 3 things that bot access gives them, including can read forum! That seems to fix it! smile_dance

For Red Steel style:
http://validator.w3.org/check?uri=http% ... ator%2F1.2
For Extreme dark red style:
http://validator.w3.org/check?uri=http% ... ator%2F1.2
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: [Request]Help Resolve 3 errors in the Validator

Post by cisco007 »

seems i was sort of right, i knew it had something to do with bots! :lol:
Image
Post Reply