I just validated my feed, Matt’s and a bunch others I could remember off the top of my head and the one thing that immeditately stuck out at from that is different from your feed is that all of our feeds start at line #1.
Your feed output starts at line #3, meaning you have 2 lines of newlines or something. That is most likely throwing everything off.
Can you make sure that your wp-rss2.php file has no extra lines/spaces so on. Additionally, can you grab the latest WP download tarball, extract just the wp-rss2.php file and re-upload it to your directory in ASCII mode.
Regards
This is another oft asked and answered question. For those in the future who search first, the problem often seems to be an extra line in a php file (I’d start checking in the plugins) outside the <?php ?>.
Thanks Cypher,
Ok this is my header of that wp-rss2.php:
<?php
if (empty($feed)) {
$blog = 1;
$feed = ‘rss2’;
$doing_rss = 1;
require(‘wp-blog-header.php’);}
header(‘Content-type: application/xml; charset=’ . get_settings(‘blog_charset’), true);
$more = 1;
?>
<?php echo ‘<?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?’.’>’; ?>
<!– generator=”wordpress/<?php bloginfo_rss(‘version’) ?>” –>
<rss version=”2.0″
xmlns:content=”http://purl.org/rss/1.0/modules/content/”
xmlns:wfw=”http://wellformedweb.org/CommentAPI/”
xmlns:dc=”http://purl.org/dc/elements/1.1/”
>
Which part do I need to delete it…?
OK..the wp-rss2.php file looks OK, at least, in your cut-n-paste.
The other thing to check out is the plugins like Beel mentioned. Somehow you are getting those 2 extra lines that are just throwing everything off..
Regards
Ok… I tried to delete this portion:
<?php
if (empty($feed)) {
$blog = 1;
$feed = ‘rss2’;
$doing_rss = 1;
require(‘wp-blog-header.php’);}
header(‘Content-type: application/xml; charset=’ . get_settings(‘blog_charset’), true);
$more = 1;
?>
and keep the rest, but there is another error appear when Im try to validate it, so what next since Im didnt use any plugin now.
Ahh..you are using WP 1.5.1.3. Could you upgrade to 1.5.2 to see if that fixes the problem..I know there were some RSS related bugs and fixes in those versions.
Regards
Ok, I’ll follow your advise mate… then see what happen. See yaa.
Update:
Then I follow Cypher advise:
1. Upgrade to WP 1.5.2…
2. Follow all the instruction for that minor upgrade.
3. Update my .htacess, get it from Options > Permalinks > then hit [update permalink structure] button.
4. View site – then try to Validate my feed page.
5. Voila… then proudly announce that finally this bugs solved… Only that can really make me smile mate. Thanks to all. My post regarding this:
# How finally I get it
# How to upgrade from 1.5.1.x to 1.5.2
I had the same problem – looks like it was a rogue whitespace at the end of one of my plugins (in this case it was The Excertp Reloaded, although I guess it could happen to any plugin).
If you’re getting the same thing, deactivate each plugin one by one to identify the culprit, then check for any new lines / whitespace outside of the PHP.
Rob.
hi
i got an rss feed problem aswell
i upgraded from 1.51 to 2.03 and changed my Permalink strucutre to /%postname%.htm
now my rss feed has changed to http://www.freedvdtrials.com/blog/feed/
but now i cant find a valid rss xml feed and other rss reader cant find a valid xml file
my blog is at http://www.freedvdtrials.com/blog/
can some1 help us out
hpbucks: Already resolved.
Yosemite: hi can u let me know how to fix my problem