Recent Topics

1 Jun 11, 2009 11:09    

My b2evolution Version: 2.x

Delicious has an 'experimental' feature where it [url=https://secure.delicious.com/settings/blogging/posting]creates a daily post of your latest bookmarks to my blog[/url]. I've given it the URL of my xmlrpc.php page, set up a user for it and given it the blog id and a category id. The first run produced this error:

[06/10/09 11:00:04 PM -0700] Creating blog post at http://www.boogdesign.com/b2evo/xmlsrv/xmlrpc.php ...ERROR: Failed due to XML RPC2 Exception: 3 : Incorrect parameters passed to method: Wanted boolean, got int at param 5 | XML RPC Error

Has anyone else tried this and got it working? I'm not sure if it's even worth investigating at this point since it's experimental. Is there anything I can do to track down what's causing the error?

Rob

2 Jun 13, 2009 23:16

I've made some progress with this. I found a setting in the advanced config which was supposed to turn on logging in XML-RPC, this didn't seem to give any more useful information than what I already had. I then just hacked the script to write out the HTTP post data to a file and looked at what Delicious was sending, this is where the problem is, the last parameter:

<param><value><int>1</int></value></param>


According to [url=http://www.sixapart.com/developers/xmlrpc/metaweblog_api/metaweblognewpost.html]this spec[/url] b2evo is doing the right thing in _metaweblog.api.php:

$mwnewpost_sig =  array(array($xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcStruct,$xmlrpcBoolean));


But I expect if I change it to this Delicious will work just fine:

$mwnewpost_sig =  array(array($xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcStruct,$xmlrpcInt));


Not sure if it's worth it - I presume it'll stop working with everything else if I make the change, on the other hand this is the only thing I want to use for at present...

Rob

3 Jun 14, 2009 00:45

Thanks for your effort! Well, since this seems to be a Delicious.com bug, somebody should inform them. :-)

4 Jun 15, 2009 13:51

our xmlrpc is updated to the latest version?


Form is loading...