If you're new here, and are interested in my thoughts on "Life as a B2B Technology Marketer"... you may want to subscribe to my RSS feed. Thanks for visiting!

*Note - non marketing related post - but I thought I would share this solution with the world to save people a few hours when they come across this problem. - PW

The Problem

Today I upgraded to the new version of the Windows Live Writer beta.  When trying to add a weblog account, I received the following error:

wlwerror

“An error occurred while attempting to connect to your weblog:

Invalid Server Response = The response to the blogger.getUsersBlogs method received from the weblog server was invalid:

Invalid response document returned from XmlRpc server

You must correct this error before proceeding”

So… after a quick search there were a few different solutions I came across.  But none were working :(

After more investigation scouring my hosts (Dreamhost) support wiki, I found the answer!!!

The Solution

There is a bug in version 5.2.2 of PHP (which is the version that my host uses) that essentially totally screws up your XmlRpc responses.  The good news is that it is easy to fix, all you need to do is add one line to the top of your xmlrpc.php file

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

As soon as I did that… it worked :)

Hope that little tidbit of information saves you.  Because the Dreamhost support forum is a wiki, I updated the reference there as well to include WLW Beta 2 on the problem list.  Got to love wiki based support!

Share this story:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

7 Responses to “Windows Live Writer and Wordpress issues”

  1. Clint Says:

    Wow… this saved my day! Wordpress on Dreamhost for me as well… thanks so much for doing the legwork and posting the solution!!!

    Cheers,

    Clint

  2. Vendetta » Blog Archive » LiveWriter Update Says:

    [...] BTW : Voor wie LiveWriter wil gebruiken bij Dreamhost (of eender welke andere provider met PHP 5.5.2 moet even een file editeren om een bug in PHP 5.5.2 te bypassen.  Meer info hier of op de Dreamhost Support Wiki. « Photosynth Fotoloze Joker » [...]

  3. John Says:

    I just started having this same problem using Dreamhost and my desktop blogging publisher….I just tried pasting the above line into my xmlrpc file, but still not working with Quama or Live Writer…can you tell me exactly where to put the above link? I’ve tried top line, second line and third line I think, to no avail (I’m using Crimson Editor to edit file) btw. Thanks

  4. Rick Says:

    Thanks a ton for posting this. I love Windows Live Writer, and I’ve been frustrated with this same exact error. I use GoDaddy, so I wonder if this solution fixes it over there, also. If so, I’ll post the fix at my place and give you the credit back to yours.

  5. My First Post using Windows Live Writer! | UK SEO, Web design and Technology Blog Says:

    [...] did not recognise this blog, after upgrading it seems to be working so far, but I have read of problems with the publishing of the blog. So if this publishes without any hitch then Live Writer will defiantly be my choice [...]

  6. Kitten Says:

    I’ve tried but it doesn’t work.
    There was line
    $HTTP_RAW_POST_DATA = file_get_contents(”php://input”);
    in xmlrpc.php file
    Please help me to find the solution!!

  7. Sakach Says:

    I just installed Wordpress 2.5.1 and the latest release of Windows Live Writer and found that there is an error in xmlrpc.php.

    There is an error in some versions of xmlrpc.php.

    In function mw_newPost()
    this line about halfway in the function is incorrect, and will show up in the log of the latest version of Windows Live Writer.

    logIO(’O’, ‘Post cats: ‘ . printr($catnames,true));

    printr is not a PHP function nor is it defined in the WordPress code.

    Instead of “printr”, the correct function name is “print_r”

    logIO(’O’, ‘Post cats: ‘ . print_r($catnames,true));

Leave a Reply