当尝试通过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时会遇到错误。我尝试禁用所有插件,没有帮助