A feedburner fix for wordpress 2.0.6
By Justin Silverton
In a recent article here a recent issue has been discovered with the latest version of wordpress and feedburner:
After upgrading to WordPress 2.0.6 or WordPress 2.1 Beta, your FeedBurner feed will, at times, give you an “invalid xml” error, and “FeedMedic” will show you something like this:
Your server disconnected us before sending the full source feed content.
The Fix
There is a simple way to fix this issue, which involves the following steps:
1) Open /wp-includes/functions.php and find the following code (around line 2231):
if ( substr(php_sapi_name(), 0, 3) == 'cgi')
@header("HTTP/1.1 $header $text");
else
@header("Status: $header $text");
}
2) change to the following:
// if ( substr(php_sapi_name(), 0, 3) == 'cgi')
@header("HTTP/1.1 $header $text");
// else
// @header("Status: $header $text");
}
3) Save the file and exit. Resync your feed at FeedBurner
1 Comment so far
Leave a reply






That’s simple. The open-source way of doing things is simply great at fixing bugs. Thanks for the fix.