• Resolved mikecherim

    (@mikecherim)


    Hello all,

    I have a weird sitation I can’t figure out. On the comments pages I have a validation error (XHTML 1.0 Strict) becuase an ID begins with a number instead of a letter. The reason I am getting this error is because somewhere in the scripting the string is broken. So while everything works fine, I don’t like having a validation error and want to fix it.

    Here is the error:
    ————————————
    # Line 63, character 28:

    <div class=”post” id=”post-
    ^
    Error: value of attribute id must be a single token
    # Line 65, character 1:

    17″><h2 class=”dot”><a href=”http://www&#8230;.

    ————————————

    Does anyone know where in the script file this break might be so I can find it and fix it. I scoured index.php and comments.php and couldn’t find a thing. I therefore suspect the the problem is deeper, as in where the ID/permalink is generated.

    Ref. Site: http://www.ccassociates.com/blog/?p=17

    In advance, thank you any answers I can get.
    Sincerely,

    Mike Cherim
    http://green-beast.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • try looking at single.php

    -tg

    Thread Starter mikecherim

    (@mikecherim)

    Hello tg,

    Right you are. I found the physical break in the code.

    This line…
    <div class=”post” id=”post-<?php the_ID(); ?><h2 class=”dot”>…

    Was like this:
    <div class=”post” id=”post-
    <?php the_ID(); ?><h2 class=”dot”>…

    Thank you very much. I just need to ask the client to replace single.php on their server and all will be right as rain. I
    already validated the change on a mirror copy. Didn’t need to, as soon as I saw it I knew.

    I appreciate your help.
    Sincerely,
    Mike Cherim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post_ID string broken’ is closed to new replies.