Blogging from Flickr (again!)

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
el10t
Regular
Posts: 14
Joined: Tue Jun 20, 2006 8:01 pm

Blogging from Flickr (again!)

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Blogging from Flickr (again!)

Post 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
# 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/
el10t
Regular
Posts: 14
Joined: Tue Jun 20, 2006 8:01 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
el10t
Regular
Posts: 14
Joined: Tue Jun 20, 2006 8:01 pm

Post 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:
el10t
Regular
Posts: 14
Joined: Tue Jun 20, 2006 8:01 pm

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Have fun,
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/
Post Reply