Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


XML Parsing Error in Wordpress

Posted on 2011-05-06
Medium Priority
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
Location: http://www.domain.com/feed
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
  • 3
  • 2

Accepted Solution

akajohn earned 2000 total points
ID: 35706832
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

ID: 35706878

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

ID: 35706883
and thank you for helping!!

Expert Comment

ID: 35707074
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.


Assisted Solution

akajohn earned 2000 total points
ID: 35707390
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.

http://codex.wordpress.org/Customizing_Feeds 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  http://www.seodenver.com/custom-rss-feed-in-wordpress/

The site looks good by the way!


Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

577 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