[wordpress]RSSのパースエラーの対処法
SPONSORED LINK
突然以下のようなエラーが出ました。
rss This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
って、エラー出てます。
これを脳内変換してみると、
XMLパースエラー:実体の初めににXMLまたはテキスト宣言がありません。
って、ことらしい。
対処法
wp-includes/feed.phpファイルを書き換えたら、エラーはなくなりました。
書き換え前
<?php /** * WordPress Feed API
書き換え後
<?php ob_end_clean(); /** * WordPress Feed API
このエラーが出てたんで、iftttがおかしくなっちゃったんですね\(^o^)/
SPONSORED LINK