WordPress.org

Support

Support » Miscellaneous » [Resolved] another validation problem…

[Resolved] another validation problem…

  • I have a problem getting my kubrick-based site to validate (uri: http://laugesen.org/wordpress/). The problem is, that somewhere in the parsing, something puts an illegal character in the very beginning of the code:
    “Line 1, column 0: character “” not allowed in prolog

    ���<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www”

    – does anyone have an idea which file to look at?

    (the problem only occurs in the theme that is active – I suppose it’ll be in one of the files in the theme-folder?)

    🙂 Jesper

Viewing 15 replies - 1 through 15 (of 16 total)
  • There is some type of space or character before your DOCTYPE. On your current them, go to your header.php and remove any space before <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0…

    Did you open/edit your header.php ?

    @exploding-boy: If only it was that simple 🙂
    I’ve already checked if that was the case – and it isn’t… I’ve even replaced the file in it’s enterity, using c/p via notepad to eliminate all possibilities of a ‘invisible’ sign to be transfered on…

    @moshu: yes – the theme is build on a localised version of kubrick

    No solution for this one? 🙁

    I have the exactly same problem, but not just with the first line, in the body text too.

    http://validator.w3.org/check?verbose=1&uri=http%3A//tobiasbergius.se/blogg/

    There’s nothing before the doctype and I’ve tried both UTF-8 and UTF-8 without BOM.

    Why doesn’t it work?!

    Moderator James Huff

    @macmanx

    Support Team Rep.

    Check the theme’s header.php file for blank spaces or odd characters before the !DOCTYPE tag. If it looks fine, see if disabling all plugins creates any improvement.

    Mark (podz)

    @podz

    Support Maven

    tobbaz – what program are you using to edit your files ?

    If it is anything made by Adobe or Macromedia, they are very probably causing the problems.

    Thanks for quick replies.

    macmanx: No characters before the doctype. No difference when disabling all plugins.

    podz: Notepad++

    Mark (podz)

    @podz

    Support Maven

    Can you post just that part of your file over at http://www.phpfi.com ?

    Mark (podz)

    @podz

    Support Maven

    Nothing wrong……

    We’ve seen these ‘prolog’ problems here before, but with feeds. And with those we can never establish what the problem is – but for some reason it literally just goes away. I have had this with my feeds before too – and they are fine now. It took a couple of days to go away.
    Before your page actually outputs to the screen, the code goes through any number of files so I guess one of them is choking on something strange but it’ll clear it’s throat soon. The only consolation being that those are the only 2 errors and your page does otherwise validate.

    Yah, I had the same problem with my feed too. And it just went away. So I guess I’ll just wait then. 🙂

    Thanks for you help. 🙂

    Moderator James Huff

    @macmanx

    Support Team Rep.

    Check for any strange characters before <?php in the index.php file in your blog root (not your theme’s index.php file).

    thanx for the help so far – Even though my problem persists…

    @podz: using ultraedit
    @macmanx: no strange characters in root/index.php

    … I guess I have to wait a few more days to see if it’ll pass??? (the absolute strangest advice on how to deal with a software problem I’ve received so far 😉 )

    FYI: the problem disappeared after updating to WP 1.5.2. 🙂 Jesper

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Resolved] another validation problem…’ is closed to new replies.