[pic via]
在升级到wordpress 2.0.6之后,你的feedburner有可能会给出“invalid xml”(无效的xml)信息,并导致你的feed无法工作。
解决方法:
打开/wp-includes/functions.php 并查找如下代码:
if ( substr(php_sapi_name(), 0, 3) == ‘cgi’ )
@header("HTTP/1.1 $header $text");
else
@header("Status: $header $text");
}
把上面的代码替换成:
// if ( substr(php_sapi_name(), 0, 3) == ‘cgi’ )
@header("HTTP/1.1 $header $text");
// else
// @header("Status: $header $text");
}
另外一种简单的解决方法:
创建一个叫做FeedBurner.php的文件并加入如下代码:
$uri="http://neosmart.net/blog/feed/"; //Replace this URI with the URI to *your* feed!! $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $uri); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); echo curl_exec($ch); $status = curl_close($ch); ?>
然后去feedburnner把feed指向你刚创建的那个FeedBurner.php。