This post originated from an RSS feed registered with PHP Buzz
by Jackson Miller.
Original Post: Testing XML-RPC in Serendipity With MarsEdit
Feed Title: Jaxn.org
Feed URL: http://jaxn.org
Feed Description: PHP thoughts on architecture and application design. Includes development information about Core Enterprise PHP.
I got this working to a satisfactory level before the release of Serendipity 0.8, but it is broken again. I am going through using MarsEdit with Serendipity and trying to get it to work again.
Turn debug off in the bundled XML_RPC Server package I just silenced the DEBUG INFO: stuff from every response.
Accept HTML when posting I just put a str_replace for the borked less-than symbol in a couple of places. Fixing this right may have something to do with implementing mt.supportedTextFilters
Return the message body when requested metaWeblog.getRecentPosts was not implemented (it was aliased to mt.getrecentPostTitles). I implemented it and switched serendipity_fetchEntries to fetch the full entry, then I added the additional fields. I still need to add keywords to the returned value though.
Enable Tagging with MarsEdit's Keywords
mt.supportedTextFilters ???
Set categories when posting/ editing
When editing a post, update the last_updated timestamp, not the entry time
After a couple of hours of hacking I am getting to the point that MarsEdit is actually pretty usable for me. I have a few more bugs to knock out, but once HTML, categories, and tagging work, I will be able to do the vast majority of my posting through MarsEdit.
ARGH! TextDrive! So, there is an XML-RPC package bundled with Serendipity. In that package there is a reset($array) call that doesn't check for an array first. Apparently it is a recursive call or something and it was spewing a ton of warnings into TextDrive's log files (logging Warnings?). Well, they didn't like how much CPU the Warnings were taking up so they chowned the file 000 and chmoded it to root. They sent me an email explaining the problem and so I went it an put an is_array() before the call. I want to be mad at TextDrive for breaking my rhythm, but really it leaves a bad taste in my mouth about Serendipity. There were supposed to be patches in 0.8 that fixed XML-RPC stuff, but all the changes I made months ago are the same changes I am making tonight. Continue reading "Testing XML-RPC in Serendipity With MarsEdit"