Live Writer large image problem #3

October 30th, 2007

In March I wrote a couple of posts about a problem using Microsoft Live Writer to post blog entries where I'd included an image above a certain size:

Live Writer large image problem

Live Writer large image problem #2

Basically, if I tried including an image above about 30KB I got the following error:

Error attempting to connect to weblog at:
http://www.itauthor.com/xmlrpc.php

The underlying connection was closed: The connection was closed unexpectedly.

I got the problem again, this evening, trying to upload my previous post, which included several decent-sized images, and I was determined to get to the bottom of the problem. It turns out the problem is with the PHP memory limit. The fix is to adjust the memory limit for PHP for your blog. To do this, simply add the following line to the .htaccess file in the root directory of your blog (in my case this directory is /var/www/html/wordpress on my Web server):

php_value memory_limit 16M

You don't need to restart Apache or anything. Just change the .htaccess file and click Publish in Live Writer and it should work fine now. I can't promise it'll work in all cases, but it worked for me.

Potentially similar posts

Leave a comment