Skip to:
Content
Pages
Categories
Search
Top
Bottom

XML Parsing Error: XML or text declaration not at start of entity


  • Quint
    Participant

    @qrahaman

    Hope someone could point me to what files that I could check…

    The following error comes up when I select RSS feed on my Activity page.

    `XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.myportfolio.com/activity/feed/
    Line Number 1, Column 3:
    –^`

    Installed: WordPress 3.2.1, Buddypress 1.5.1, BP Template Pack 1.2

    This is the first error that I’ve come across using the Template Pack.

    Not sure if the template pack is the contributing factor, so I did the following: I’ve used a clean install of my WordPress theme (without either Buddypress or the template pack activated). The RSS feed works fine on my WordPress theme. I’ve also used bp-default, and the RSS feed works fine there too.

    So, I’m thinking it’s one of the templates in the Template Pack? Has anyone come across this and solved it? If not, I would appreciate it if someone could point me to which files to examine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried running an XML validator on that URL? It’s basically saying there’s something before the opening XML tag, and it’s throwing an error when trying to parse it.


    Quint
    Participant

    @qrahaman

    @DJPaul,

    Thanks for replying. I ran it against an online validator which resulted in 9 errors (all of them having to do with declaration): for example, html, head, meta, title, link, etc “must be declared” in the header.php file.

    Do you see anything here?

    `<?php
    /**
    * Header Template
    *
    * Here we setup all logic and XHTML that is required for the header section of all screens.
    *
    */
    global $woo_options;
    $filagree = get_template_directory_uri() . ‘/images/filagree.png’;
    if ( isset( $woo_options ) && ( $woo_options == ‘true’ ) ) {

    if ( isset( $woo_options ) && ( $woo_options != ” ) ) { $filagree = $woo_options; } else {
    $filagree = get_template_directory_uri() . ‘/images/filagree.png’;
    }
    }
    ?>

    <html >

    <meta charset="” />

    <link rel="stylesheet" type="text/css"
    href=”” media=”screen” />
    <link rel="pingback" href="” />

    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XML Parsing Error: XML or text declaration not at start of entity’ is closed to new replies.
Skip to toolbar