• Hi ,
    i got this feed error message , in my blog , i don’t know exactly what is it means :

    “XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.goomedic.com/feed
    Line Number 4, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>

    my feed it not working , can i know where is the problem is ?!

    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter hamzamusa

    (@hamzamusa)

    sorry for posting again , but i need help !

    The second line of your code says lang=”en-US

    It should say xml:lang=”en-US

    You should validate your code at http://validator.w3.org/. That will help you avoid problems.

    Thread Starter hamzamusa

    (@hamzamusa)

    validate what code exactly ?

    Your website. Validate your website to make sure the html/php code is correct.

    I’m having this same exact problem, and my site is totally in English. Have you upgraded to 2.7? Seems like mine started around then, or it could be due to a new plug in, I’m not sure.

    I’m having the same problem – can’t get new subscribers with WP- 2.7. Here’s my site:
    http://greenerpastures.responsiblepersonalfinance.com/

    Here’s the error message put up when you try to subscribe to the feed:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://feeds.feedburner.com/GreenerPasturesPersonalFinance
    Line Number 11, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>
    ^
    t feedburner, it has this to say, but I don’t know enough about code to know how to correct it. It seems like this may be the problem? I am not sure.

    Message

    Blank line before XML declaration (WordPress)
    Explanation

    If an XML declaration (<?xml … ?>) appears in your feed, it must be the first thing in the feed, before any whitespace.

    Unfortunately, with WordPress it seems all too easy for a plugin, a theme, or for your configuration file to contain a blank line. Further compounding this problem, some — but not all — feed readers compensate for this common error, allowing the error to go undetected for quite a while.
    Solution

    * PHP also uses a similar notation: <?php … ?>. Note that the final php ?> should be omitted from all PHP code files—modules, includes, etc. The closing delimiter is optional in PHP (but not in XML), and removing it helps prevent unwanted white space at the end of files which can cause problems with your feeds.
    * Check your wp-rss2.php and wp-atom.php files for blank lines outside of <? and ?> bracketed sections.
    * Check your wp-config.php file for blank lines outside of <? and ?> bracketed sections.
    * Check your theme’s functions.php file for blank lines outside of <? and ?> bracketed sections.
    * One by one, disable plugins and revalidate until you isolate the one causing the problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feed error , message !’ is closed to new replies.