• Resolved Mobster

    (@mobster)


    I can’t seem to fix this error.

    I have removed lines, turned off plugins, numerous other things and still nothing.

    In total, I receive about 8 errors that I have seen before and have repaired by adjusting a semantic issues here or there. This time I’m stumped?

    Error Line 242, Column 34: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag.

    <li id=”linkcat-2″ class=”linkcat”><h2>Primary Sponsors</h2>

Viewing 5 replies - 1 through 5 (of 5 total)
  • w3c validation is usually spot on. The error you are describing.. i have had MANY of. if you could give us the link of the website, somebody might be able to give a solution to whereabouts the error is actually occuring.

    either that or post about 10 or so lines above and below wher the error is occuring (or the entire div element if it is in one).

    through my experience on my blog, when the Archive section had content (ie links in the sidebar), i had an

    • tag directly inside an
    • tag, which the validation complained about.

    pard me, a <.ti.> tag inside of a <.ti.> tag.

    Thread Starter Mobster

    (@mobster)

    This is just one of the errors location. I am using this to separate categories for my blogroll.

    <div class=”menuscroll”>
    <?php
    echo preg_replace(‘/(href=”http:\/\/(.*)”.*<\/a>)/U’, ‘\\1\\2’, wp_list_bookmarks(‘echo=0’));
    ?>

    This line generates the above error.

    I am in fact including both via custom query’s and (a better iinclude) posts on to the home page… I will look in these pages for poor code as well.

    The website I can’t post unless you give me your ip. It’s not live yet.

    Thank You

    check out the following link, it might help you to figure out what is happening. also find out if your wp_list_bookmarks() and other functions are also displaying <.li.> tags or any other html.

    https://webdesign.about.com/od/htmltags/p/bltags_li.htm

    (it was handy in letting me know correct ordering of things, when using an editor such as notepad++ it makes it easier to know what tags end and begin where.

    Thread Starter Mobster

    (@mobster)

    Slaps myself on forehead ! That was such an easy fix… Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3c Validation. Is this a possible database error?’ is closed to new replies.