Page 1 of 1
xmlrpc categories problem with blogilo
Posted: Mon Mar 14, 2011 11:08 am
by Proscribere
Hi,
i'm thinking about switching from wordpress to s9y. At this time i'm using the blogging client blogilo. In wordpress it works very good. But if i try to use it in s9y, i don't get any categories. I searched in google for hours and couldn't find much. I only found out, that the xmlrpc plugin for s9y is a little bit old. Maybe the plugin needs only a little update?
It would be great if someone knows how to solve it. It's also ok, if you can say me another blogging client for linux which works with s9y (tried scribefire for firefox. couldn't connect: "unknown method" ).
Thanks

Re: xmlrpc categories problem with blogilo
Posted: Mon Mar 14, 2011 3:54 pm
by garvinhicking
Hi!
So you mean, blogilo allows you to create postings etc. but cannot get any categories?
I've not used it, is there an option to tell which protocol is used? s9y offers "Meta Weblog/Blogger API" and "MoveableType API". Maybe changing that could help for you.
If not, please report back and I'll try to find time to install the client to do some tests. It shouldn't be too hard to get this working properly.
Regards,
Garvin
Re: xmlrpc categories problem with blogilo
Posted: Mon Mar 14, 2011 5:02 pm
by Proscribere
Yeah, posting works fine. I already tried all possible api. Meta and Movable says it received the categories. But the list is empty. With blogger it's loading, and loading, and loading............
Tried to start it in a console to get any error messages. But it shows nothing special. Only some errors with kwallet, which is normal since it's disabled (password manager from kde.. i'm not using kde). And a layout error from QT. This errors never had any effects to wordpress.
Re: xmlrpc categories problem with blogilo
Posted: Tue Mar 15, 2011 3:29 pm
by garvinhicking
Hi!
The s9y event-xmlrpc plugin has a nice debugging option. Would you be willing to try that out so that we could debug it together?
You can enable it by editing plugins/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php and set $debug_xmlrpc = true; (line 7).
Once that is set, a /tmp/rpc.log logfile is created that contains all calls made from and to the XML-RPC api. If you truncate the file to 0 byte, then retrieve the category list, and then make a copy of the rpc.log file, it should only contain that exact RPC call that we would need to inspect on what it returns.
Maybe your categories contain special characters that the XMLRPC client is not properly able to decode, which might disturb its parsing?
Regards,
Garvin
Re: xmlrpc categories problem with blogilo
Posted: Tue Mar 15, 2011 5:12 pm
by Proscribere
Sure i will.
http://pastebin.com/YYmYs04z
Tried with MetaWeblog Api. I changed the one with umlauts. Also i tried to remove all slashes and other characters. Didn't change anything... Normally it shouldn't have problems with special characters. Like said before: It's working on wordpress. With the same categories.
And blogilo still doesn't give me a message. So i tried again with scribefire. It still says "unknown method", no matter which api.
Re: xmlrpc categories problem with blogilo
Posted: Wed Mar 16, 2011 2:21 pm
by garvinhicking
Hi!
Great!
So let's see what we can change. How about this:
In line #180 of serendipity_xmlrpc.php you should find this:
Code: Select all
if ($cat['categoryid']) $xml_entries_vals[] = new XML_RPC_Value(
array(
'description' => new XML_RPC_Value($cat['category_name'], 'string'),
'htmlUrl' => new XML_RPC_Value(serendipity_categoryURL($cat, 'serendipityHTTPPath'), 'string'),
'rssUrl' => new XML_RPC_Value(serendipity_feedCategoryURL($cat, 'serendipityHTTPPath'), 'string')
),
'struct'
);
Change this to:
Code: Select all
if ($cat['categoryid']) $xml_entries_vals[] = new XML_RPC_Value(
array(
'categoryid' => new XML_RPC_Value($cat['categoryid'], 'string'),
'title' => new XML_RPC_Value($cat['category_name'], 'string'),
'description' => new XML_RPC_Value($cat['category_name'], 'string'),
'htmlUrl' => new XML_RPC_Value(serendipity_categoryURL($cat, 'serendipityHTTPPath'), 'string'),
'rssUrl' => new XML_RPC_Value(serendipity_feedCategoryURL($cat, 'serendipityHTTPPath'), 'string')
),
'struct'
);
and then see if that helps. If it doesn't, you might want to remove those lines for "htmlUrl" and "rssUrl".
And if that also does not help, change the 'struct' you see in the code to 'array'.
Let's go from there.

What I read from
http://core.trac.wordpress.org/ticket/3994 is that it seems WP does not properly follow the XMLRPC-API in this case, and relies on other clients to implement it like they did, instead of the spec. So it might simply be that some XMLRPC clients expect different results.
Regards,
Garvin
Re: xmlrpc categories problem with blogilo
Posted: Wed Mar 16, 2011 6:00 pm
by Proscribere
Ok, now i can't get an id:
Blogilo says:
Code: Select all
Received invalid XML markup: unexpected character at 2:2
In rpc.log is nothing now. Seems like blogilo can't connect to s9y now.
EDIT:
There was an missing ',' in the last string.

Now it can connect again. But no change. Still no categories there. Log says this:
http://pastebin.com/mxEdTn1H
Re: xmlrpc categories problem with blogilo
Posted: Wed Mar 16, 2011 6:38 pm
by garvinhicking
Hi!
And did you try to use 'array' instead of 'struct' as the second option I mentioned?
Would you be willing to try to get blogilo's support forums? If their developers can tell what exactly they expect, it should help.
And can you also post a rpc.log for when you use the MoveableType API?
Regards,
Garvin
Re: xmlrpc categories problem with blogilo
Posted: Wed Mar 16, 2011 8:12 pm
by Proscribere
Re: xmlrpc categories problem with blogilo
Posted: Thu Mar 17, 2011 2:42 pm
by garvinhicking
Hi!
Hm, seems with 'array' all the indexes get lost, so that doesn't seem to be the proper way.
It would be great if they can look at the debug output and tell what blogilo would actually expect.
Can you provide a rpc.log when you use the MoveableType API?
Regards,
Garvin
Re: xmlrpc categories problem with blogilo
Posted: Thu Mar 17, 2011 6:17 pm
by Proscribere
This is strange...
http://pastebin.com/0hFwjizR
I set it to movableType api. But rpc.log shows metaweblog.

Re: xmlrpc categories problem with blogilo
Posted: Sun Mar 27, 2011 5:10 pm
by Proscribere
Ok, now i waited long enough.. The blogilo people didn't give any answer. There are more then 100 views, which says enough. Seems to be a bug there.
I tried qtm blogging client and it works fine. It doesn't have the same functions like blogilo, but i'm glad with it. It works without any problems on serendipity with movable type api. Maybe i find another client, i can test.
Thank you very much for your help.
EDIT:
One question: What about daylight saving on serendipity?

If i post something with my client, it says it's 16:xx but on my computer it's 17:xx (which should be correct, because i use openntpd).
EDIT2:
Ok, never mind. It works now with right time. Don't know, what happened. xD
Re: xmlrpc categories problem with blogilo
Posted: Sun Mar 27, 2011 9:11 pm
by garvinhicking
Hi!
s9y operates on the server time, so the first think should be to adjust the timezone there.
If that's not an otion you can set a timezone offset +1 in the s9y configuration!
Glad you found a client that works, and I'm really sorry we couldn't really find out what blogilo chokes on. If their devs ever get back to you with a fix, I'll happily try to implement it in s9y!
Regards,
Garvin