Support » Fixing WordPress » XML Parsing Error on RSS Feed

  • I’m getting an XML Parsing error on my RSS feed and I’m not entirely sure where it is coming from. All was well just a few hours ago. I’ve been tweaking templates but just things like the sidebar and CSS. I didn’t know where the RSS template was until a few minutes ago. According to the Feed Validator, there’s a blank line but I have no idea what file that needs to be changed on … or frankly how it got added in the first place.

    Any tips you have on how I can bring my RSS feed back to life would be immensely appreciated. Thanks!

    http://www.sooz.com/?feed=rss2

    Error:

    XML Parsing Error: xml processing instruction not at start of external entity
    Location: http://www.sooz.com/?feed=rss2
    Line Number 2, Column 1:
    <?xml version=”1.0″ encoding=”UTF-8″?><!– generator=”wordpress/1.5.1.2″ –>
    ^

    Feed Validator:

    http://feedvalidator.org/check.cgi?url=http://www.sooz.com/?feed=rss2

    Source: http://www.sooz.com/?feed=rss2

    1.
    2. <?xml version=”1.0″ encoding=”UTF-8″?><!– generator=”wordpress/1.5.1.2″ –>

Viewing 15 replies - 16 through 30 (of 31 total)
  • Moderator James Huff

    (@macmanx)

    It has to be in one of those main files, otherwise it wouldn’t affect your entire source output. Did you check both your theme’s index.php and the index.php in the /wordpress/ directory?

    I know how you feel

    It’s got to be your wp-blog-header, because it has to be a file that’s called in wp-rss2.

    Moderator James Huff

    (@macmanx)

    brainwidth, it could be any of his WP files. Just go to her blog and view the source output. It’s not just RSS related, that blank line is in his source output too, and it’s being mirrored in the RSS feed as an error.

    Ok, let’s just attack this with a hatchet (especially since I need to get to work). Open every WordPress file in the /wordpress/ directory (and any WordPress file in your main directory) except for the plugin files and files in /wp-admin/ and /wp-includes/. Also, open every file in your current theme (it looks like the Default Theme). One of those files has a blank line at the top of the file, and that is what’s causing the blank line at the top of your source output and also causing the feed error.

    It is also possible that one of the plugin would be causing this blank line. If that is true, deactivating all plugins would have fixed it.

    macmanus: Yes, I see the blank line when viewing source. That’s part of the reason this is so frustrating. I do see it. However, it’s not showing up in t he files I’ve been looking at.

    I removed every extra carriage return on the following files:

    sooz.com/index.php
    sooz.com/wordpress/index.php
    sooz.com/wordpress/wp-content/themes/default/index.php
    sooz.com/wordpress/wp-blog-header.php
    sooz.com/wordpress/wp-rss2.php

    No luck, alas.

    Moderator James Huff

    (@macmanx)

    Sorry that I keep posting right before you like this. Just try all of the files as mentioned of above. We’ll get this bugger.

    I deactivated the plugins a while ago.

    Sooz = she.

    Thanks for the tip about opening all the files. I have a feeling it’d just be easier to re-install WP. Since I have no opened all of those files in the first place it seems strange that now there might be an extra line in one of them.

    Thanks, mcmanx. I think I’ll just reinstall WP. After I figure out how to backup and import the entries.

    I was really happy to move from Movable Type but this has all been a bit much. LOL

    Moderator James Huff

    (@macmanx)

    If you are going to reinstall, just make sure to delete the files before replacing them. Overwriting via FTP can lead to incomplete transfers.

    Moderator James Huff

    (@macmanx)

    You shouldn’t have to touch your database (which is also where all your posts are kept), but if you’d like to back it up, see this: http://www.tamba2.org.uk/wordpress/backup/

    I think I’m just going to install it in the root of sooz.com instead of having it in a seperate directory.

    But the problem I now have is I have no idea how to install a new version of WP and have it work with my existing MySQL database. Egads. This sucks. LOL

    Moderator James Huff

    (@macmanx)

    When you install the new files in your root directory, don’t run install.php. You will have to change the site_url and home values in your database. See this for help: http://www.tamba2.org.uk/wordpress/site-url/

    Once that’s done, run /wp-admin/upgrade.php just to be safe.

    Thanks very much!!!

    Moderator James Huff

    (@macmanx)

    No problem. Good luck! And please come back if you have any more questions. ^_^

    I just realized it’s going to be an even bigger hassle to reinstall unless i put it at sooz.com/wordpress where it is right now. Ugh. Well, I guess I’ll give WP one more try. 🙁

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘XML Parsing Error on RSS Feed’ is closed to new replies.