Page 1 of 1

Using XML-RPC plugin with Word 2007

Posted: Mon Oct 08, 2007 4:33 am
by kadata
I'm trying to post to my blog using Word 2007 and the XML-RPC plugin. I have two blogs, one of them running directly off the root of the webpage, and another located in a subfolder. When I setup the blog in Word with the blog running directly under the root, everything works just perfectly! But when I try to set it up with the one running under the root, I get an error message saying:

"Word cannot register your account. The provider where you are trying to publish is unavailable. Contact your provider for assistance"

I have checked permissions on both the files (both the one in the blog that works, and the one that doesn't) and they match exactly. Do I have to change something in the code to reflect the folder?

Re: Using XML-RPC plugin with Word 2007

Posted: Mon Oct 08, 2007 10:39 am
by garvinhicking
Hi!

This seems to me as if the Word-Autodetection routine always tries to do something on the root address instead of using root+subdirectory.

I don't have Word 2007, so I don't know which configuration options it offers...?

Do the two blogs differ in the installed event plugins?

Regards,
Garvin

Posted: Mon Oct 08, 2007 5:59 pm
by kadata
From what I understand, the configuration options are similar to the Microsoft Live options. It asks for the API (ATOM or MetaWebLog), the Blog Post URL (the blog's XML-RPC file), user id, and password. I suppose you are right about Microsoft looking in the root directory. the two blogs hardly differ in the types of plugins and I have removed most of the plugins in attempts to get this going (except SPARTACUS).

Since the earlier post, we have tried another site and have no problems, but again, it was installed in the root and not in a subdirectory. I'd be interested in hearing if anyone else has had a similar problem with Word or Microsoft Live, and a blog located in a subdirectory.

Thanks!

Posted: Mon Oct 08, 2007 6:17 pm
by chickens
I just posted to my test site form word 2007: http://zonalnet.com/serendipity/index.p ... -Test.html

As you can see this is a directory and not the root. As I've never done this before I did the following steps: I then filled in a title for the blog post and the text and it posted to my site.

I do not have any other blog software on this site, but it did post just fine to the directory.

Posted: Wed Oct 10, 2007 1:52 am
by kadata
Thanks for the reply Chickens!

It's good to know that this is possible and I'm not trying to do the impossible. :wink: You described exactly the same steps that I've been trying. I'm starting to think that there is a problem at the host site. I'm going to try this on a different host to see if there is a configuration problem with Pear or something in the Php config. I'll keep people posted in case they are interested, and I'm open for any suggestions to try in the meantime.

Posted: Thu Oct 18, 2007 4:26 pm
by kadata
Figured I would post an update since I made some progress...

I found the connection problem to be HOST related and not a plug-in problem. The root cause was mod_security related, so I added the following to the .htaccess file

Code: Select all

<Files serendipity_xmlrpc.php>
SecFilterInheritance Off
</Files>
To view the error I was getting I directly entered the actual serendipity_xmlrpc.php URL (http://www.myprobsite.com/s9ySubFolder/ ... xmlrpc.php) in a browser and found I was getting a "412 precondition failed" error, which was NOT visible or evident from within Word 2007. After modifying the .htaccess, Word immediately interacted with Serendipity. Everything seemed to work except one thing. Word could not see any of my entries. This was even the case with entries created from Word! I could create and publish an entry but the "Open Existing" option in Word would display nothing. Again, this is only happening on this one site where we have Serendipity installed in a subfolder.

I don't know if I need to modify anything else in the .htaccess or if there is a function that looks to the root (doubtful), or if a local config file is accessed from the wrong directory. If anyone has any ideas, I'm open for suggestions. This is not urgent, so I'll keep tinkering in the meantime. I hope some of this helps somebody else.

Posted: Thu Dec 20, 2007 12:18 pm
by jedidjab79
kadata wrote:Figured I would post an update since I made some progress...

I found the connection problem to be HOST related and not a plug-in problem. The root cause was mod_security related, so I added the following to the .htaccess file

Code: Select all

<Files serendipity_xmlrpc.php>
SecFilterInheritance Off
</Files>
To view the error I was getting I directly entered the actual serendipity_xmlrpc.php URL (http://www.myprobsite.com/s9ySubFolder/ ... xmlrpc.php) in a browser and found I was getting a "412 precondition failed" error, which was NOT visible or evident from within Word 2007. After modifying the .htaccess, Word immediately interacted with Serendipity. Everything seemed to work except one thing. Word could not see any of my entries. This was even the case with entries created from Word! I could create and publish an entry but the "Open Existing" option in Word would display nothing. Again, this is only happening on this one site where we have Serendipity installed in a subfolder.

I don't know if I need to modify anything else in the .htaccess or if there is a function that looks to the root (doubtful), or if a local config file is accessed from the wrong directory. If anyone has any ideas, I'm open for suggestions. This is not urgent, so I'll keep tinkering in the meantime. I hope some of this helps somebody else.
Kadata - thank you so much!! I just got the same error trying to configure Windows Live Writer to access Serendipity (http://www.s9y.org/210.html) and had no idea what to do.

Thanks again for posting your findings here. They should really link to this post, or just copy the information, to the Windows Live Writer Setup page for Serendipity.