Adam’s Blog

To view the world from my own point

Adam’s Blog header image 2

Fixed the Error of Windows Live Writer – " blogger.getUsersBlogs"

December 2nd, 2008 · 10 Comments · Wordpress

After I moved my sites to HostGator, I found that HostGator is better than MediaTemple.

But when I want to publish a new post with Windows Live Writer, it shows an error: "Invalid Server Response – The response to the blogger.getUsersBlogs method received from the weblog server was invalid".

Then I search it at google, and get two blogs wrote it.

Then I followed the solution which wrote on first blog:

1. In your .htaccess file add the following lines:

<Files xmlrpc.php>
SecFilterInheritance Off
</Files>

2. If this doesn’t solve the problem, contact your hosting company and ask them if mod_security is blocking access to xmlrpc.php — and if so, if they can set it to allow access to that file.

After did the solution 1, I could not visit my sites any more. All showed the 500 Internal Error. Then I undo it.

I submitted an ticket to my hosting supplier-HostGator, and they told me they haven’t blocked xmlrpc.php on the server. But it still no work.

Then I find another post on here:

1. First step is to check the security part. Make sure your xmlrpc.php in the WordPress root directory is given Read and Execute instructions for you. Check with your hosting service people to see if this is properly set. Most probably your host should have given you a control panel for managing your webspace, you should be able to do this from there. For WordPress.com hosted websites, I guess this should have been already taken care of.

2. Go to your WordPress root directory. Open your wp-blog-header.php. Remove the NEWLINE characters (Enter’s) at the start of the file, before <?php tag, and from the end, after the closing ?> tag. Now save this. Make sure you remove the newlines from the following files too.

  • wp-blog-header.php
  • wp-config.php
  • wp-settings.php

3. Check if step (2) has solved your problem. If not, do step (2) for the theme files of your site, located under $WORDPRESS_ROOT/wp-content/themes/.

  • For example, if I am using Misty Look theme, I’d be checking under $WORDPRESS_ROOT/wp-content/themes/MistyLook

4. Try connecting now. If still you have problems, don’t worry yet, let us try one more thing. Sometime the plugins do cause extra output. This may be the cause. Try disabling all the plugins in your WordPress installation and try. If it works, great! Now, enable the plugins one by one and check to find out the culprit.

I tried step 1, 2 and 3, but it still no work. Then I disable all the plugins, it works! Then I enable the plugins one by one. Then I found the error is occured by Dagon Design Sitemap Generator. If this plugin is disabled, then Windows Live Write works normally. This plugin is a very good plugin for wordpress. I have left message on author’s blog and wordpress forum, after the bug fixed I will use it. Solve it is very easy, isn’t? :)

Bookmark and Share

Tags: ···

10 Comments so far ↓

Leave a Comment