Archive for the 'Wordpress Related' Category

Wordpress 2.3 and Windows Live Writer issue

I recently updated one of my Wordpress blogs to v2.3

All seemed to be going well until I tried to post a new entry using Windows Live Writer (v12.0.1277.816) and it had an issue. Live Writer would post the entry yet come back with an error. It would not know it had posted the entry and would therefore save it as a draft. Also, republishing the same (draft) entry would result in an entirely new copy being published on the blog. The error was this:

Invalid Server Response

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

Invalid response document returned from XmlRpc server.

I hunted high and low for a solution. I did not find one. Then I thought perhaps there was an issue with my plugins. After disabling all plugins and then one-by-one reactivating them, I discovered the one causing the issue: Google Sitemaps v2.7.1

Looking up this plugin on the Wordpress 2.3 plugin compatibility list I see it is not compatible and that there is an updated version (3.0). I deleted the 2.7.1 version (just one file called sitemaps.php) and installed the folder and files for v3.0

After activating this new version I no longer get the publishing error on Windows Live Writer.

The lesson here is to check that all activated plugins are compatible with the latest version of Wordpress.

Windows Live Writer Error 400 with Wordpress

The first issue I ran into with Windows Live Writer (v12.0.1183.516) is that it does not work with the plug-in Bad-behaviour. This plug-in is very useful on any WordPress blog, in my opinion. It prevents a vast amount of comment spam. BB and Spam-Karma eliminate ALL spam on all of my Wordpress blogs. Having said that, I do have one blog without BB and only Spam Karma. So far no spam in 4 months. So perhaps Bad-Behavior is not as crucial as I previously thought. If you don’t want to use Bad-Behavior on Wordpress and Windows Live Writer to post your entries, the following fix is necessary (until BB sorts things out with the plug-in)

So, the error is:
The server reported an error with the following URL:
http://e-volutiononline.com/blog/xmlrpc.php
The remote server returned an error: (400) Bad Request.

The fix is as follows:

  1. You’ll need to figure out what your IP address is. The one assigned to your Internet connection by your ISP. Either look it up in the status page of your router/adsl modem, or go to a page like http://whatismyip.com/
  2. Be aware that your ISP will have a large range of IP addresses it may assign to you, unless they provide customers with fixed IP addresses (not common). I suggest you email them and ask them to tell you the range they use. Also ask if they can provide it in the CIDR format. If they won’t provide it in CIDR form (will look like XXX.XXX.XXX.XXX/XX) then go to the CIDR Calculator
  3. Edit the following file in the Bad Behavior plugin folder
    /plugins/bad-behavior/bad-behavior/whitelist.inc.php
  4. You’ll find this code:
    $bb2_whitelist_ip_ranges = array(

        // Includes four examples of whitelisting by IP address and netblock.
        $bb2_whitelist_ip_ranges = array(
            “10.0.0.0/8″,
            “172.16.0.0/12″,
            “192.168.0.0/16″,
            ADD YOUR IP ADDRESS HERE USING SAME FORMATING (e.g. “58.28.130.0/16″,)
    //        “127.0.0.1″,
        );

  5. Save the whitelist. That should be all you need to do
  6. If your IP changes you will need to add the new address to the whitelist.

I have raised this issue with the coder fo Bad-Behavior. I await his reply.

Let me know if this helps.

Jonathan




Bad Behavior has blocked 143 access attempts in the last 7 days.