Post via XML-RPC error

Found a bug? Tell us!!
Post Reply
J_Geer
Regular
Posts: 5
Joined: Wed Nov 04, 2009 12:00 am
Location: Belarus

Post via XML-RPC error

Post by J_Geer »

I try post via XML-RPC plugin (v.1.45) and I see:

faultCode 105 faultString XML error: Invalid document end at line 1

when my script try check blog API URL
xttp://site.com/serendipity_xmlrpc.php

It's the bug or it my error in Serendipity settings?
Thank's in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Post via XML-RPC error

Post by garvinhicking »

Hi!

How do you try? Which Client do you use? You must properly send the required XML-RPC methods and values.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
J_Geer
Regular
Posts: 5
Joined: Wed Nov 04, 2009 12:00 am
Location: Belarus

Re: Post via XML-RPC error

Post by J_Geer »

So...
Script (client) - Blogs Automater, http://www.blogsautomater.com/. Allowed blog types:
- Blogger API 1.0, 2.0
- Metaweblog API
- Wordpress (MultiUser) Blog
This script require Blog API URL, as xttp://site.com/folder/your_xmlrpc.php.
I write mysite.com/myfolder/serendipity_xmlrpc.php.

With Wordpress and some other scripts are all right. Script get structure of blog with categories and send posts by categories.

With Serendipity (I have installed v.1.41) script see structure of blog but without categories. In other words, I can to post to blog, but I can't to post to categories of blog. All sent a posts are visible in "No category". As I think - becouse Serendipity don't give back categories list.

Sorry... I not programmer and I can't to explain more professionaly... You can view docs for BA script at http://support.cheapestwebsoftware.com/ ... m.php?f=12
or you can to try to install trial version (belturbo.info/dnl/ba153.zip).

P.S. Sorry for my eerie English.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Post via XML-RPC error

Post by garvinhicking »

Hi!

You did install the serendipity_event_xmlrpc event plugin?

Did you check another XML-RPC tool like Windows Live Writer or w.bloggar? Can you choose the API method? You should use 'Metaweblog API'.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
J_Geer
Regular
Posts: 5
Joined: Wed Nov 04, 2009 12:00 am
Location: Belarus

Re: Post via XML-RPC error

Post by J_Geer »

garvinhicking wrote: You did install the serendipity_event_xmlrpc event plugin?
Yes, of course...
garvinhicking wrote: Did you check another XML-RPC tool like Windows Live Writer or w.bloggar? Can you choose the API method? You should use 'Metaweblog API'.
No, I not check. I not use blog-clients, no need. And I don't know a blog-clients for Linux. But I checked "Blogs Automater" with Wordpress, LifeType and LitePublisher blogs - it good worked.
And I just checked a links to xmlrpc.php for WP, LP and LT blogs in brouser - and I saw "XML-RPC server accepts POST requests only." For serendipity_xmlrpc.php - "faultCode 105 faultString XML error: Invalid document end at line 1". Therefore I think that it's bug in plugin...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Post via XML-RPC error

Post by garvinhicking »

Hi!

For Linux you can use Drivel, BloGTK, Gnome Blog to test if that works. As for "Blogs Automater" I have no konwledge with that...it might be written specifically for WordPress, that's why I ask you to try another tool that is known to work. If that works, we know at least that it's a problem with BlogsAutomater, and not with your blog setup itself.

Which language do you natively speak in? German, by any chance? :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
J_Geer
Regular
Posts: 5
Joined: Wed Nov 04, 2009 12:00 am
Location: Belarus

Re: Post via XML-RPC error

Post by J_Geer »

Hi!
garvinhicking wrote:Which language do you natively speak in? German, by any chance? :)
No, Russian... :)

I check XML-RPC tool with Windows Live Writer - all right. But...

But for me a principal only the good work with "Blogs Automater". He more than blogging client... many more...

And a few indiscreet remarks in passing (it my IMHO only... :):
- Static Pages and External PHP Application (plugins for pages and sidebar). I sure that all additional pages and windows of forms (as "...code for counter" and "...text into the page footer") must support a PHP scripts. If I put in footer

Code: Select all

<?php echo date("Y"); ?> 
**** or date from $start_year ****

Copyright ©<a href="http://site.com">My site</a>,

Code: Select all

<?php
$start_year = 2007;
$now_year = date("Y");
if ($now_year > $start_year) {
    echo "$start_year-$now_year";
} else {
    echo "$now_year";
}
?>
- it's not secure? :)

By existing moments:
- External PHP Application plugins don't show Title in admin panel (.../serendipity_admin.php?serendipity[adminModule]=plugins) - there and everywhere "External PHP Application";
- no "Related PHP page" for category;
- media manager don't see images and videos (in "upload" folder) that was uploaded via FTP. I sure that upload files from own local computer far better... especially if need to upload many files. May be need to make option "scan Upload folder by request"?

Sorry for criticism, but it serious script, not for newbies only...

Regards, Konstantin
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Post via XML-RPC error

Post by garvinhicking »

Hi!

I'm really sorry...but I cannot understand what you are writing... :-(

What I did understand:
- media manager don't see images and videos (in "upload" folder) that was uploaded via FTP. I sure that upload files from own local computer far better... especially if need to upload many files. May be need to make option "scan Upload folder by request"?
You can enable the option "Automatic on-the-fly-mediadatabase synchronization", which will automatically insert files uploaded via FTP, or you can click on "Rebuild thumbnails" which is the "scan folder" equvalent. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
J_Geer
Regular
Posts: 5
Joined: Wed Nov 04, 2009 12:00 am
Location: Belarus

Re: Post via XML-RPC error

Post by J_Geer »

garvinhicking wrote: You can enable the option "Automatic on-the-fly-mediadatabase synchronization", which will automatically insert files uploaded via FTP, or you can click on "Rebuild thumbnails" which is the "scan folder" equvalent. :)
Thank's!
Post Reply