• Hey, Guys!
    My page used to validate as of a day or two ago. I don’t think that I’ve changed anything along the way, but I could be wrong, but now my page won’t validate because it says it doesn’t have a DOCTYPE header, though I clearly see one both in the source and in the actual file. I’ve modified my index.php quite a bit, but I’ve double and triple checked it against the default one from WP and it’s the same. It’s not invalidating my page and defaulting to html 4.01 instead of xhtml 1.0 transitional. Any ideas? My site is at https://www.aqueerlife.com.
    Thanks!
    Josh

Viewing 4 replies - 1 through 4 (of 4 total)
  • You have code in your index.php file before the DOCTYPE declaration.

    <b>Warning</b>: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in <b>/home/jibhtwlc/public_html/wp-includes/functions.php</b> on line <b>452</b>

    Delete this and try to re-validate.

    Thread Starter rsbenedict

    (@rsbenedict)

    Where are you finding this. It’s not in my index.php file and it’s not in my wp-blog-header.php file and it doesn’t show up when I view my page and view source. I’m using firefox .9.1 and I don’t see it.
    Thanks!

    Thread Starter rsbenedict

    (@rsbenedict)

    Figured it out. It had to do with comments compression. Aparently my server didn’t support it and it was generating an error in the functions.php page just prior to loading the index.php page. I found it by viewing the page in a different browser and reading the source before the page was cached. One cached, it no longer showed those other lines in the source.
    Thanks for your guys’ help!
    Josh

    Just re-visited…that code is not there, but then I tried to validate, and the validation works just fine.
    I blame insdustrial espionage…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not recognizing DOCTYPE’ is closed to new replies.