• Below are examples of some of the validation errors I am getting for my site (https://www.popontherocks.net) that I can’t figure out how to fix. I don’t even know where this is in the code… can someone help me figure it out?

    ______

    Error Line 185 column 21: unclosed start-tag requires SHORTTAG YES.

    <li id=”linkcat-1″<h2>Blogs</h2>

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

    <li id=”linkcat-1″<h2>Blogs</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 “” or “<table>”) inside an inline element (such as ““, “<span>”, or “<font>”).

    Error Line 196 column 19: unclosed start-tag requires SHORTTAG YES.

    <li id=”linkcat-6″<h2>Books</h2>

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

    <li id=”linkcat-6″<h2>Books</h2>
    ________

Viewing 11 replies - 1 through 11 (of 11 total)
  • Well, that’s telling you that the list-item tag is problematic. There’s a couple of reasons that can happen:

    1. There is NO containing ul tag anywhere in your sidebar (not likely).

    2. The li tagset is for some reason missing its ending </li>. Which is what it really looks like, but to tell you the truth I don’t know how that could happen if you’re using any normal version of wp themes with normal link category setup.

    Viewing your source, I see this:

    <li id="linkcat-1"<h2>Blogs</h2>
    <ul>
    <li><a href="https://modernfabulousity.blogspot.com/">Modern Fabulousity</a></li>
    <li><a href="https://blogs.usatoday.com/popcandy/">Pop Candy</a></li>
    <li><a href="https://reality-junkie.blogspot.com/">Reality-Junkie</a></li>
    <li><a href="https://seamsters.net/">SeamSters</a></li>
    <li><a href="https://shoesies.blogspot.com/">ShoeLog</a></li>

    <li><a href="https://thefilmexperience.net/">The Film Experience</a></li>

    </ul>
    </li>

    First line isn’t right:
    <li id="linkcat-1"<h2>Blogs</h2>

    Should be:
    <li id="linkcat-1"><h2>Blogs</h2>

    Unless I’m wrong….I dunno. =) I have been having space cadetish days lately lol! =)

    spencerp

    Thread Starter poponthe

    (@poponthe)

    Thanks for your replies! I will try to add in the extra >, but a quick question… do you happen to have an idea of what file I would have to open to change it? That’s where I am getting a little confused. I’m pretty sure I can’t change it by simply using the Theme editor, because I’ve been through all of those files already.

    Actually this line
    <li id="linkcat-1"<h2>Blogs</h2>
    id generated by WP, so if you have this kind of errors, it means there is something wrong with your install.

    Edited* Oh ok..moshu. =) Thanks for pointing that out.. =) Scratch my theory or suggestion then O.P. =)

    No problem, but are you sure your “ego1” theme doesn’t have the sidebar.php file? It should have one, unless it’s prolly in the index.php file or something odd like that..never know these days lmao!

    spencerp

    Thread Starter poponthe

    (@poponthe)

    Thanks for replying. Yeah, that line of code isn’t in the sidebar…. so if it is generated by WordPress is there some way I can fix it? Do I have to reinstall everything? If so does that mean I have to start from scratch?

    Try changing back to the default theme, then run the validator again. See if you get the same errors. If yes: then you probably need to reinstall wp (AFTER you get a database dump!); if no: the theme itself is at fault.

    Thread Starter poponthe

    (@poponthe)

    Thanks for your reply. I tried setting the theme back to default, and the same validation errors came up. So how can I reinstall wordpress without losing everything I’ve done so far?

    Also, I what is a database dump?

    Thanks.

    If you install the same version of WP, you don’t really have to worry about backup. (though it’s always good to have one!)
    Just download a fresh copy of WP, unzip and upload it. DEon’t run install or upgrade. Nothing.
    Of course, keep your wp-config file and your theme.

    It should work. But ask back if anything is not clear.

    Thread Starter poponthe

    (@poponthe)

    Thanks. I will try that tomorrow.

    Thread Starter poponthe

    (@poponthe)

    Okay, so I tried to reinstall but the same validation errors keep coming up. Any thoughts?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Having trouble fixing validation errors’ is closed to new replies.