python-wordpress-xmlrpc で wordpress に投稿しようとするとエラーが発生する
ExpatError at /syncFeed/1/
junk after document element: line 2, column 0
Request Method: GET
Request URL: http://localhost:8000/syncFeed/1/
Django Version: 1.4.3
Exception Type: ExpatError
Exception Value:
junk after document element: line 2, column 0
そして、エラーメッセージを調査すると、wordpressから応答が得られます
self
<xmlrpclib.ExpatParser instance at 0x10ca61200>
data
"<br />\n<b>Warning</b>: strpos() [<a href='function.strpos'>function.strpos</a>]: Empty delimiter in <b>/home/itpod59/public_html/wp-includes/class-wp-xmlrpc-server.php</b>
on line <b>4338</b><br />\n<br />\n<b>Warning</b>: Cannot modify header information - headers already
sent by (output started at /home/itpod59/public_html/wp-includes/class-wp-xmlrpc- server.php:4338) in
<b>/home/itpod59/public_html/wp-includes/class-IXR.php</b> on line <b>475</b><br />\n<br />\n<b>Warning</b>:
Cannot modify header information - headers already sent by (output started at /home/itpod59/public_html/wp-includes/class-wp-xmlrpc-server.php:4338) in
<b>/home/itpod59/public_html/wp-includes/class-IXR.php</b> on line <b>476</b><br />\n<br />\n<b>Warning</b>:
Cannot modify header information - headers already sent by (output started at /home/itpod59/public_html/wp-includes/class-wp-xmlrpc-server.php:4338) in
<b>/home/itpod59/public_html/wp-includes/class-IXR.php</b> on line <b>478</b><br />\n<br />\n<b>Warning</b>: Cannot modify header "
修正方法がわかりません。このコードと例は私の mac では問題なく動作しますが、本番環境で worpdress を使用するとエラーが発生します。そして、すべてのプラグインを無効にしようとしましたが、役に立ちません