当尝试通过 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 中运行良好,但在尝试使用 wrpdress 进行生产时出错。我尝试禁用所有插件,没有帮助