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]
Flickr (serendipity_xmlrpc.php)
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Flickr (serendipity_xmlrpc.php)
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
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/
# 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/
-
mr_spuck
Re: Flickr (serendipity_xmlrpc.php)
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Flickr (serendipity_xmlrpc.php)
Could you please try the following:
1. Edit your serendipity_event_xmlrpc.php file in the plugins directory. Locate this block:
After those two lines please add:
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
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';
Code: Select all
$eventData = array('XML-RPC' => true);
Code: Select all
$debug_xmlrpc = false;
Code: Select all
$debug_xmlrpc = true;
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
# 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/
# 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/
-
mr_spuck
Re: Flickr (serendipity_xmlrpc.php)
Hi Garvin,
here is the information you wanted:
HTH
brgds, Marc
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>
brgds, Marc
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Flickr (serendipity_xmlrpc.php)
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
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
# 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/
# 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/
-
mr_spuck
Re: Flickr (serendipity_xmlrpc.php)
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Flickr (serendipity_xmlrpc.php)
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
Could it be that your API changes are not applied in your flickr account?
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/
# 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/