Support » Fixing WordPress » Live Writer XMLRPC Error

  • Resolved eremiticlife

    (@eremiticlife)


    I’ve seen this in a couple of places (and in regard to the wordpress.com site) and I’ve tried some of the hints on other sites, but to no avail.

    When I post to my self-hosted blog, I get the following error:

    The response to the metaWeblog.newPost method received from the weblog server was invalid:

    Invalid response document returned from XmlRpc server

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried disabling all plugins and using the default theme to eliminate your theme and plugins as a possible source of the problem?

    What’s the URL of your blog? Windows Live Writer also has an error log, is there any additional information there?

    Thread Starter eremiticlife

    (@eremiticlife)

    That did it. Thanks! I didn’t realize about the WLW log. I have found the culprit: NextGEN Gallery.

    This is what I found:

    WindowsLive.Writer.CoreServices.XmlRpcClientInvalidResponseException: Invalid response document returned from XmlRpc server —> System.Xml.XmlException: There are multiple root elements. Line 2, position 2.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
    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 —
    at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText)
    at WindowsLive.Writer.CoreServices.XmlRpcClient.CallMethod(String methodName, XmlRpcValue[] parameters)

    <b>Warning</b>: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘searchnggallerytags’ was given in <b>/home/[home directory]/public_html/wp-includes/plugin.php</b> on line <b>166</b>

    <b>Warning</b>: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘searchnggallerytags’ was given in <b>/home/[home directory]/public_html/wp-includes/plugin.php</b> on line <b>166</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/[home directory]/public_html/wp-includes/plugin.php:166) in <b>/home/[home directory]/public_html/wp-includes/class-IXR.php</b> on line <b>387</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/[home directory]/public_html/wp-includes/plugin.php:166) in <b>/home/[home directory]/public_html/wp-includes/class-IXR.php</b> on line <b>388</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/[home directory]/public_html/wp-includes/plugin.php:166) in <b>/home/[home directory]/public_html/wp-includes/class-IXR.php</b> on line <b>389</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/[home directory]/public_html/wp-includes/plugin.php:166) in <b>/home/[home directory]/public_html/wp-includes/class-IXR.php</b> on line <b>390</b>
    <?xml version=””1.0″”?>
    <methodResponse>
    <params>
    <param>
    <value>
    <string>5263</string>
    </value>
    </param>
    </params>
    </methodResponse>
    “,””
    WindowsLiveWriter,3460,Fail,00011,05-Feb-2009 09:53:45.422,”WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Invalid Server Response – The response to the metaWeblog.newPost method received from the weblog server was invalid:

    The last plugin that I added was NextGEN. The ‘searchgallerytags’ clued me in that it might be it. I disabled it: error gone. Reactivated it: error back.

    This is a NextGEN bug, it would appear.

    Looks that way. It’s causing PHP warning/errors that are getting included with the XML-RPC responses, messing them up in the process. Make sure you provide that feedback to the plugin author so that it can get fixed.

    Hi,

    I have a kind of similar problem. I recieve the same error as the topic starter and tried to fix it using the following. Methods

    I added this code

    if (phpversion()==”5.2.2″) $GLOBALS[‘HTTP_RAW_POST_DATA’] =
    file_get_contents(“php://input”);

    Source: http://foliovision.com/2007/05/19/xml-rpc-server-wordpress-error/
    After that i got a 500 error

    $HTTP_RAW_POST_DATA = file_get_contents(“php://input”);

    Source: http://josephsmarr.com/2007/06/06/wordpress-xml-rpc-server-accepts-post-requests-only/

    Here i also get the same error.
    I kind of have no idea how to fix it so does anyone have any idea?

    Below is my log output:
    WindowsLiveWriter,2788,None,00034,03-Aug-2009 04:25:48.140,”Exception parsing XML-RPC response:

    WindowsLive.Writer.CoreServices.XmlRpcClientInvalidResponseException: Invalid response document returned from XmlRpc server —> System.Xml.XmlException: Gegevens op hoofdniveau zijn ongeldig. Regel 1, positie 1.
    bij System.Xml.XmlTextReaderImpl.Throw(Exception e)
    bij System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    bij System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    bij System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    bij System.Xml.XmlTextReaderImpl.Read()
    bij System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    bij System.Xml.XmlDocument.Load(XmlReader reader)
    bij System.Xml.XmlDocument.LoadXml(String xml)
    bij WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText)
    — Einde van intern uitzonderingsstackpad —
    bij WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText)
    bij WindowsLive.Writer.CoreServices.XmlRpcClient.CallMethod(String methodName, XmlRpcValue[] parameters)

    XML-RPC server accepts POST requests only.”,””
    WindowsLiveWriter,2788,Fail,00035,03-Aug-2009 04:25:48.140,”WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Ongeldige serverrespons – De respons van de weblogserver op de methode metaWeblog.newMediaObject is ongeldig:

    Invalid response document returned from XmlRpc server
    bij WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod(String methodName, XmlRpcValue[] parameters)
    bij WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.DoBeforePublishUploadWork(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish(IFileUploadContext uploadContext)”,” bij System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
    bij System.Environment.get_StackTrace()
    bij WindowsLive.Writer.CoreServices.Diagnostics.LogFileTraceListener.Fail(String message)
    bij System.Diagnostics.TraceInternal.Fail(String message)
    bij System.Diagnostics.Trace.Fail(String message)
    bij WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.FileUploadWorker.DoUploadWork(String fileReference, BlogFileUploader fileUploader, Boolean isWindowsLiveLightboxCloneEnabled)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.LocalFileTransformer.Transform(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.LocalFileReferenceFixupFilter.FixReferences(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.OnBeginTag(BeginTag tag)
    bij WindowsLive.Writer.CoreServices.LightWeightHTMLDocumentIterator.Parse()
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(TextWriter output, ReferenceFixer referenceFixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer)
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.LocalSupportingFileUploader.UploadFilesBeforePublish()
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork()
    bij WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()
    bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bij System.Threading.ThreadHelper.ThreadStart()”
    WindowsLiveWriter,2788,Fail,00036,03-Aug-2009 04:25:48.171,”WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Ongeldige serverrespons – De respons van de weblogserver op de methode metaWeblog.newMediaObject is ongeldig:

    Invalid response document returned from XmlRpc server
    bij WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod(String methodName, XmlRpcValue[] parameters)
    bij WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.DoBeforePublishUploadWork(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.FileUploadWorker.DoUploadWork(String fileReference, BlogFileUploader fileUploader, Boolean isWindowsLiveLightboxCloneEnabled)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.LocalFileTransformer.Transform(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.LocalFileReferenceFixupFilter.FixReferences(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.OnBeginTag(BeginTag tag)
    bij WindowsLive.Writer.CoreServices.LightWeightHTMLDocumentIterator.Parse()
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(TextWriter output, ReferenceFixer referenceFixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer)
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.LocalSupportingFileUploader.UploadFilesBeforePublish()
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork()
    bij WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()”,” bij System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
    bij System.Environment.get_StackTrace()
    bij WindowsLive.Writer.CoreServices.Diagnostics.LogFileTraceListener.Fail(String message)
    bij System.Diagnostics.TraceInternal.Fail(String message)
    bij System.Diagnostics.Trace.Fail(String message)
    bij WindowsLive.Writer.PostEditor.BlogPostEditingManager.UpdateWeblog(Boolean publish)
    bij WindowsLive.Writer.PostEditor.BlogPostEditingManager.PostToWeblog(Boolean publish)
    bij WindowsLive.Writer.PostEditor.BlogPostEditingManager.PublishAsDraft()
    bij WindowsLive.Writer.PostEditor.PostEditorMainControl.commandPostAsDraft_Execute(Object sender, EventArgs e)
    bij WindowsLive.Writer.ApplicationFramework.Command.RaiseEvent(Object eventKey, EventArgs e)
    bij WindowsLive.Writer.ApplicationFramework.Command.OnExecute(EventArgs e)
    bij WindowsLive.Writer.ApplicationFramework.CommandOwnerDrawMenuItem.OnClick(EventArgs e)
    bij System.Windows.Forms.MenuItem.MenuItemData.Execute()
    bij System.Windows.Forms.Command.Invoke()
    bij System.Windows.Forms.Command.DispatchID(Int32 id)
    bij System.Windows.Forms.Control.WmCommand(Message& m)
    bij System.Windows.Forms.Control.WndProc(Message& m)
    bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    bij System.Windows.Forms.ContainerControl.WndProc(Message& m)
    bij System.Windows.Forms.Form.WndProc(Message& m)
    bij WindowsLive.Writer.ApplicationFramework.ApplicationForm.WndProc(Message& m)
    bij WindowsLive.Writer.ApplicationFramework.SatelliteApplicationForm.WndProc(Message& m)
    bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    bij System.Windows.Forms.Application.Run(Form mainForm)
    bij WindowsLive.Writer.ApplicationFramework.SatelliteApplicationForm.Launcher.ThreadMain(Object[] parameters)
    bij WindowsLive.Writer.CoreServices.Threading.ThreadStartWithParams.Run()
    bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bij System.Threading.ThreadHelper.ThreadStart()”
    WindowsLiveWriter,2788,None,00037,03-Aug-2009 04:25:48.171,”DisplayableException occurred: WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Ongeldige serverrespons – De respons van de weblogserver op de methode metaWeblog.newMediaObject is ongeldig:

    Invalid response document returned from XmlRpc server
    bij WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod(String methodName, XmlRpcValue[] parameters)
    bij WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.DoBeforePublishUploadWork(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish(IFileUploadContext uploadContext)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.FileUploadWorker.DoUploadWork(String fileReference, BlogFileUploader fileUploader, Boolean isWindowsLiveLightboxCloneEnabled)
    bij WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.LocalFileTransformer.Transform(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.LocalFileReferenceFixupFilter.FixReferences(BeginTag tag, String reference)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.OnBeginTag(BeginTag tag)
    bij WindowsLive.Writer.CoreServices.LightWeightHTMLDocumentIterator.Parse()
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(TextWriter output, ReferenceFixer referenceFixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer, ReferenceFixedCallback referenceFixed)
    bij WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer)
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.LocalSupportingFileUploader.UploadFilesBeforePublish()
    bij WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork()
    bij WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()”,””

    I think the most important part is

    XML-RPC server accepts POST requests only.”,””

    A few days ago i also had some strange accounts in my wordpress admin panel. They had no roles so i deleted the accounts. But i kind of suspect that some one was possibly hacking it.

    Anyway does anyone have any idea’s what it might be? Otherwise i`m considering reinstalling wordpress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Live Writer XMLRPC Error’ is closed to new replies.