Page 1 of 1

Blogging from Flickr (again!)

Posted: Thu Jun 29, 2006 2:08 pm
by el10t
Hi all,
I've installed the xmlrpc event plugin so that I can post blog entries from Flickr. However, within Flickr when I try to "add new blog" and put in the URL for the serendipity_xmlrpc.php file, together with username and password, it just reports back that my endpoint is wrong.

I've enabled the error logging as mentioned in another thread and the resultant logfile shows this:

Code: Select all

[29.06.2006 05:00]<?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>[username edited out]</string></value></param>
		<param><value><string>[password edited out]</string></value></param>
	</params>
</methodCall>

Array
(
)

Anyone got any idea why the endpoint is reported as being wrong?
Many thanks
Rich

Re: Blogging from Flickr (again!)

Posted: Thu Jun 29, 2006 2:19 pm
by garvinhicking
Hi!

Is that the full content of the logfile? How exactly did you enable debugging? There should be a lot more in the file...

Best regards,
Garvin

Posted: Thu Jun 29, 2006 5:02 pm
by el10t
Thanks Garvin.

That's all that's in the log file. I've tried again and still that's all that gets written to it.

To get it I edited serendipity_xmlrpc.inc.php and set $debug_xmlrpc = true at the top.

Posted: Thu Jun 29, 2006 5:13 pm
by garvinhicking
Hi!

Instead setting it to "true" please try to set it to "2".

And did you check the logfile in /tmp/rpc.log ? If you changed the path location, there are many places in that file, not just on top of the file...

Best regards,
Garvin

Posted: Thu Jun 29, 2006 5:18 pm
by el10t
garvinhicking wrote:Hi!

And did you check the logfile in /tmp/rpc.log ? If you changed the path location, there are many places in that file, not just on top of the file...

Best regards,
Garvin
Ah. I feel stupid . I only changed the path at the top. I'll change it everywhere and see what it says. :oops:

Posted: Fri Jun 30, 2006 9:19 am
by el10t
Well, I changed all the occurences of the log path in the file, and then it stopped writing anything to the log altogether, but Flickr still reported a wrong endpoint. :(

So then I reinstalled Serendipity, this time putting it in the root directory of the site (previously it was installed in a subdirectory while I trialled it to see whether it would be good for my needs. The main site was powered by Drupal).

This solved the problem and everything now works perfectly! For future reference, it appears not to be a good idea to install s9y underneath a Drupal installation because strange things might occur. I think it must be to do with .htaccess and rewrite rules and stuff but am not an expert.

Thanks anyway, Garvin. :D

Posted: Fri Jun 30, 2006 9:43 am
by garvinhicking
Hi!

Ah, okay. Yes, that might have happened, that the XML-RPC calls didn'T properly come through? ;)

Have fun,
Garvin