Page 1 of 1
Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 1:05 am
by mr_spuck
Hi,
first of all, I am using Serendipity 0.9-alpha4 and i have installed the xmlrpc-plugin via spartacus to be able to post entries to my blog via xmlrpc.
When I try to configure my blog in Flickr (I use "Blogger API Enabled Blog", "
http://blog.marc-redmann.de/serendipity_xmlrpc.php" as API Endpoint and the right username/password combination, but Flickr tells me that the endpoint I supplied is not correct.
After checking the logs on my server, I see the following:
httpd: PHP Fatal error: Call to a member function on a non-object in /var/www/web3/html/plugins/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php on line 64
After that I checked the named file at the given position, where it reads:
63: $val = $message->params[1];
64: $username = $val->getval();
My conclusion is, that on lline 64 it tries to access an object that is undefined, but the question is why and to be honest I have no clue ...
Maybe anyone on this forum can help me, or had the same problem already ...
brgds, Marc[/quote]
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 12:41 pm
by garvinhicking
Does Flickr allow different APIs than Blooger? MT-API maybe? It seems very much like that the request flickr is sending does not match what our API expects...
Regards,
Garvin
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 1:58 pm
by mr_spuck
Hi Garvin,
thanks for your answer ...
I have tried that with the same result ... so I think it is a problem with serendipity.
Also I know that flickr worked with Version 0.8 of Serendipity, but I don't want to downgrade ...
brgds, Marc
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 3:22 pm
by garvinhicking
Could you please try the following:
1. Edit your serendipity_event_xmlrpc.php file in the plugins directory. Locate this block:
Code: Select all
require_once dirname(__FILE__) . '/PEAR/XML/RPC/Server.php';
require_once dirname(__FILE__) . '/serendipity_xmlrpc.inc.php';
After those two lines please add:
Code: Select all
$eventData = array('XML-RPC' => true);
Then please edit your serendipity_xmlrpc.inc.php file in the plugins directory and at the top of the file change
to
This will create a rpc.log file for each incoming RPC request. Please try again to connect with our flickr account, and after that post your rpc.log file here or on some nopaste service like
http://nopaste.php-q.net/
Replace your usename/password information in that file with XXXX!
Then we should be able to get it to work, I'm sure!
Regards,
Garvin
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 6:02 pm
by mr_spuck
Hi Garvin,
here is the information you wanted:
Code: Select all
[02.09.2005 15:39]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>metaWeblog.getUsersBlogs</methodName>
<params>
<param><value><string>NO-APP-KEY</string></value></param>
<param><value><string>XXXXXXXX</string></value></param>
<param><value><string>XXXXXXXXXXX</string></value></param>
</params>
</methodCall>
<?xml version="1.0" encoding="UTF-8"?>
<!-- PEAR XML_RPC SERVER DEBUG INFO:
0 - 'new XML_RPC_Value("NO-APP-KEY", \'string\')'
1 - 'new XML_RPC_Value("XXXXXXXX", \'string\')'
2 - 'new XML_RPC_Value("XXXXXXXXXXX", \'string\')'
-->
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Unknown method</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---------------------------------------
[02.09.2005 15:39]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>blogger.getUsersBlogs</methodName>
<params>
<param><value><string>NO-APP-KEY</string></value></param>
<param><value><string>XXXXXXXX</string></value></param>
<param><value><string>XXXXXXXXXXX</string></value></param>
</params>
</methodCall>
[02.09.2005 15:48]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>blogger.getUsersBlogs</methodName>
<params>
<param><value><string>NO-APP-KEY</string></value></param>
<param><value><string>XXXXXXXX</string></value></param>
<param><value><string>XXXXXXXXXXX</string></value></param>
</params>
</methodCall>
HTH
brgds, Marc
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 7:14 pm
by garvinhicking
That is true, the method "metaWeblog.getUsersblogs" does not exist.
You need to configure Flickr to use the Blogger API, this supports the "blogger_getUsersBlogs" API command.
The other way is to create the missing method, but I'd need information on what the method does, what its input and output parameters are.
Regards,
Garvin
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 7:55 pm
by mr_spuck
Hi Garvin,
as I mentioned already in my first post, it is also not working when I confgure flickr to use Blogger API ...
all I get is the error message I posted above ...
brgds, Marc
Re: Flickr (serendipity_xmlrpc.php)
Posted: Fri Sep 02, 2005 9:22 pm
by garvinhicking
But you must get different output when the Blogger API is used - the metaWeblog function should then not be present!
Could it be that your API changes are not applied in your flickr account?
Regards,
Garvin