Probably because you have some whitespace in wp-rss2. It should look like this:
?>
<?php echo ‘<?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?’.’>’; ?>
Make sure there are no spaces after the first ?> above
I understood what you meant… There isn’t any extra whitespace that I can see. Plus, I don’t recall ever really tampering with it to where there would even be whitespace. :-/ Check which file for whitespace?
wp-blog-header.php
I’m sure Matt or somebody will come along soon with the “obvious” answer.
Well the thing that gets me is that my comments RSS works but not the other one. Does that even make sense? Are there files associated with only one but not the other? This could be obvious but it just seems strange to me that one works but the other one doesn’t.
For your feed, I get the following
in your feed, if I view source, I see a space before the <?xml
I see
<?xml version="1.0" encoding="utf-8"?>
- <!-- generator="wordpress/1.2"
-->
- <rss version="0.92">
space included
and the error thrown is :
XML Parsing Error: xml processing instruction not at start of external entity
Location: http://www.amyobsessive.com/feed/rss/
Line Number 2, Column 1:
So it seems like you have an extra space, or blank line before the <?xml
line.
You could fix it by editing the file to remove whitespaces.
For one, try removing the space here:
header('Content-type: text/xml', true);
?>
I’m sorry for possibly being lame, but I don’t know which files I should be checking for this whitespace. I tried downloading the files from wordpress and putting in fresh new files from the site, unaltered by me (which they never were in the first place), and its the same issue. Those files shouldn’t have the whitespace should they? especially if they work on everyone else’s sites.
When the source is viewed, I don’t know which php files those are coming from because I don’t know enough about what is going into the /feed/rss stuff. I just need a little more ellaboration on what it is I should be doing to which files so I don’t get confused and mess more things up.
Thanks again for the help so far… Your responses are really appreciated 🙂
THANK YOU SO MUCH FOR ALL OF YOUR HELP 🙂 I got it working. I feel like sending you both thank-you notes. All I can provide though are pictures of me and, like, gmail accounts. Ha.
Maybe you could tell us where did you find the whitespace?
I hace the same problem, but did it what you suggest and don´t work RSS… another idea?
I use wordpress 1.5, and I can´t read my RSS, I’ve tried with some themes, but happen the same. I use Pluck in order to read the RSS. In some themes (actually) I can read the comments RSS, but no the general RSS. Tks. http://www.aweblog.org
The comments are in: http://www.aweblog.org/wp-commentsrss2.php and th general RSS in http://www.aweblog.org/wp-rss2.php