• Resolved craigh

    (@craigh)


    Hi struggling to get validation and have eliminated most of the issues. I changed back to the default worpress theme and that has me down to 3 errors copied below.

    Don’t know much about code and having trouble working out how to fix these o why they need to be as I thought wordpress was xhtml comp.

    Can anybody assist

    This page is not Valid XHTML 1.0 Transitional!
    Result: Failed validation, 3 Errors
    Address:

    Validate error pages Verbose Output Clean up Markup with HTML Tidy
    Help on the options is available.

    ↑ Top

    Validation Output: 3 Errors
    Line 154, Column 22: document type does not allow element “div” here; assuming missing “li” start-tag .
    <div id=’error’>?
    Line 158, Column 7: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag .

    • <h2>Meta</h2>?
      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 ““, “<span>”, or “<font>”).

      Line 167, Column 9: end tag for “li” omitted, but OMITTAG NO was specified .

      ?
      You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

      Line 154, Column 7: start tag was here .
      <div id=’error’>

Viewing 8 replies - 1 through 8 (of 8 total)
  • A link to your site would help. It’s not really possible to advise you where to look from those errors.

    Thread Starter craigh

    (@craigh)

    Sure thanks for you help I’ve set up a text only page to work through the issues and changed back to default theme as some errors where related to the theme I was using. So the page I’m trying to validate is
    https://www.loanchecker.com.au/westpac-error-checking

    Using validator
    https://validator.w3.org/check?uri=http%3A%2F%2Fwww.loanchecker.com.au%2Fwestpac-error-checking&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0

    Thanks heaps for looking at this, I’m on a real steep learning curve with this ??

    Why not use Show Outline and Verbose. Revalidate and scroll down. Its all there.

    I think you’ll find that the problem is caused by the database error:

    WordPress database error: [Unknown column 'name' in 'order clause']
    SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY name ASC

    You’ll need to look in the sidebar to see what code is producing that. At a guess, you’ve got code calling for a list of links that’s using the syntax for a different version of WP.

    Thread Starter craigh

    (@craigh)

    Thanks for that, the databse error seems like a good place to start. I’m new to this so sorry if I appear stupid.

    Assume I will have to go into the database files on my server and try to locate the code with the error?

    Is that right.

    No its the php function that is out of date.

    Thread Starter craigh

    (@craigh)

    ok thanks for assist, as the risk of being an idiot where to I find and correct this php issue.

    By the wayare these comments all out of their widow for you as well or is just my view of them.

    Thread Starter craigh

    (@craigh)

    Had a further play with this and found that it must be theme related. I changed themes ( away from wordpress default) and the database error is gone and on top of that it validates as compliant xhtml which is what start this in the begining.

    So from that i would assume there is either a code error in the original wordpress theme or an error during install in the theme area.

    thanks heaps for you help guys. I’m going to find another theme I can work with and go from there.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wordpress XHTML not compliant??’ is closed to new replies.