Title: Problems with xml-rpc.php
Last modified: November 2, 2017

---

# Problems with xml-rpc.php

 *  Resolved [mriss71](https://wordpress.org/support/users/mriss71/)
 * (@mriss71)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/)
 * After the last update nobody can use Open Live Writer anymore! Very big achievement!
 * The response to the metaWeblog.newPost method received from the blog server was
   invalid: Invalid response document returned from XmlRpc server
 * Invalid response document returned from XmlRpc server —> System.Xml.XmlException:
   Unexpected XML declaration. The XML declaration must be the first node in the
   document, and no white space characters are allowed to appear before it. Line
   56, position 3.
 * So everybody forced to log in and waist time …
    Even if it’s not blocked! Strange
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-xml-rpc-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9645578)
 * Hi [@mriss71](https://wordpress.org/support/users/mriss71/),
 * Could you check the _Open Live Writer_ log file? What errors do you see there?
 * What do you mean by
 * > So everybody forced to log in and waste time …
 * ?
 *  Thread Starter [mriss71](https://wordpress.org/support/users/mriss71/)
 * (@mriss71)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9646546)
 * When posting using WLW or OLW the time wasted is around 10 sec!
    When posting
   through web it take up to 5 to 10 min! So it’s a very big difference! I am having
   this for WLW:
 * “Exception parsing XML-RPC response:
 * WindowsLive.Writer.CoreServices.XmlRpcClientInvalidResponseException: Invalid
   response document returned from XmlRpc server —> System.Xml.XmlException: Unexpected
   XML declaration. The XML declaration must be the first node in the document, 
   and no white space characters are allowed to appear before it. Line 56, position
   3.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.
   Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParsePI(BufferBuilder
   piInDtdStringBuilder) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 
   at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean
   skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(
   String xml) at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String
   responseText) — End of inner exception stack trace —
 * Problems appear asap as I updated to latest version of Wordfence!
    I guess I 
   will return to previous one
    -  This reply was modified 8 years, 7 months ago by [mriss71](https://wordpress.org/support/users/mriss71/).
 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9664515)
 * Hi [@mriss71](https://wordpress.org/support/users/mriss71/),
 * After doing some research, I found out there are several possible causes of this
   issue; among which:
    - Insufficient memory limit and File Upload Limit allocated to PHP
    - A bug in PHP (5.2.2)
    - A warning regarding a deprecated PHP feature (_$HTTP\_RAW\_POST\_DATA_) inserted
      at the start of the message rendering it invalid
    - Plugins conflict causing the message to be truncated
 * The log file (in _%LOCALAPPDATA%\OpenLiveWriter_ or _%LOCALAPPDATA%\Windows Live
   Writer_) should provide more information.
 * Also, can you please confirm that the issue disappears when you disable Wordfence?
    -  This reply was modified 8 years, 6 months ago by [wfyann](https://wordpress.org/support/users/wfyann/).
      Reason: Adding a probable cause (plugin conflict)
 *  Thread Starter [mriss71](https://wordpress.org/support/users/mriss71/)
 * (@mriss71)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9707572)
 * solved by a trick. uninstalled completely than reinstall and set!
    strange but
   efficient. sorry for not being active but I get a bad flu…
 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9708441)
 * Hi [@mriss71](https://wordpress.org/support/users/mriss71/),
 * Thanks for letting us know. I’m glad you managed to fix this issue!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problems with xml-rpc.php’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [invalid](https://wordpress.org/support/topic-tag/invalid/)
 * [response](https://wordpress.org/support/topic-tag/response/)
 * [server](https://wordpress.org/support/topic-tag/server/)
 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * 5 replies
 * 2 participants
 * Last reply from: [wfyann](https://wordpress.org/support/users/wfyann/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/problems-with-xml-rpc-php/#post-9708441)
 * Status: resolved