WordPress.org

Ready to get started?Download WordPress

Forums

Not recognizing DOCTYPE (5 posts)

  1. rsbenedict
    Member
    Posted 9 years ago #

    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 http://www.aqueerlife.com.
    Thanks!
    Josh

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    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.

  3. rsbenedict
    Member
    Posted 9 years ago #

    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!

  4. rsbenedict
    Member
    Posted 9 years ago #

    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

  5. Anonymous
    Unregistered
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.