XML Parsing Error in Wordpress

Posted on 2011-05-06
Last Modified: 2012-05-11
Hello -

I am using a modify wordpress install of WordPress 3.0.5. There seems to be a space at the top of my feed file, but not sure where its coming from, or which file and where to edit. Here is the error I have received;

XML Parsing Error: XML or text declaration not at start of entity
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>

I have tried to install the Fix Rss Feeds plugin which no success. It says it will not activate because of a fatal error. I believe that this is because the backend may have been modified, since I did not build the site I dont want to mess around too much. Look forward to the help. Best
Question by:jrsnmedia
    LVL 6

    Accepted Solution

    Can you save a copy of the XML file as a text document and post it here.  Please replace all sensitive information with dummy data.
    I am interested to see if there could be other errors.


    Author Comment


    If you could let me know how to pull or find the xml that would rule. This site is a bit different than wordpress I have worked with, i could send you a private link to the live site if that would be more helpful. would rather not post the url here.

    Author Comment

    and thank you for helping!!
    LVL 6

    Expert Comment

    Open the feed url in a browser (e.g IE) and then save the page as a txt/xml/All files document. Please send me the url using the contact information on my profile. As always I do not promise anything. Am going to offline soon. It end of the day here.

    LVL 6

    Assisted Solution

    I have check the url you sent me. (Thanks).

    The feed is not an xml file at all. It starts with a javascript code. It looks like an html page. I suspect that one of the modifications is to include a script at the top of all the pages and this is messing up the feed. list the php file you need to look at. One of the modifications may be in there.

    Sorry but hard to help anymore. Would have to spend some time looking at the code a bit more.

    tHIS MAY also help

    The site looks good by the way!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
    In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
    The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now