categoryId in WordPress 2.1 Breaks Ecto
Posted January 23rd, 2007 @ 07:32pm by Erik J. Barzeski
As I said in an earlier post, WordPress 2.1 breaks ecto, a blog publishing app I and thousands of others use. I wrote to the developer Adriaan, and he's informed me that the fault lies with WordPress 2.1. Here's how.
When requesting new information in ecto (via "Refresh"), ecto attempts to retrieve the last 15-20 or so entries, their categories, their dates, etc. WordPress 2.1 sends this:
<member><name>categoryId</name><value><int>7</int></value></member>
It should send this:
<member><name>categoryId</name><value><string>7</string></value></member>
This was correct in previous versions, and according to Adriaan, the specs clearly indicate that categoryId is a string, not an int. A quick Google search quickly returns this page, which is over one month old.
I'll mention this on the IRC channel.
Posted 23 Jan 2007 at 7:48pm #
[...] Update: WordPress 2.1 breaks ecto with a bad categoryId type. [...]
Posted 24 Jan 2007 at 1:38am #
Specs can be found mirrored here: http://blog.kung-foo.tv/archives/001594.html
Posted 24 Jan 2007 at 1:20pm #
Thanks for finding this and teasing it out...
- geoff
Posted 24 Jan 2007 at 2:16pm #
A patch to fix this is available at http://trac.wordpress.org/attachment/ticket/3662/3662-xmlrpc-categoryId.diff . Even though I am confident this will fix it, still would love to hear that the patch works for you 😉
Posted 24 Jan 2007 at 2:19pm #
Oh, I almost forget... thank you Erik for presenting this so concisely! And sorry for us not catching this.
Posted 24 Jan 2007 at 2:35pm #
[quote comment="39250"]A patch to fix this is available at http://trac.wordpress.org/attachment/ticket/3662/3662-xmlrpc-categoryId.diff . Even though I am confident this will fix it, still would love to hear that the patch works for you ;-)[/quote]
It appears to work.
Posted 25 Jan 2007 at 4:33am #
Works like a charm. Thanks Lloyd.
Posted 25 Jan 2007 at 1:00pm #
super. works fine
Thanks in advance.
Posted 25 Jan 2007 at 5:12pm #
[...] thanks to Erik Barzeski of NSLog();. He provided the solution to the incompatibility between the blog editor I’m using, ecto, and WordPress 2.1. The edit [...]
Posted 29 Jan 2007 at 2:26pm #
Sparkzy, you are welcome for the solution that "Erik posted" 😉 Which I actually got from Andy Skelton.
Posted 30 Jan 2007 at 11:08am #
[...] Last week I took this site to WordPress 2.1 and much to my dismay realized that Ecto, my favorite XMLRPC blogging client no longer worked. It would let me post, but it was never able to update the category information for posts… It just hung with no error. I looked into it, and found out that Ecto expects the category information to be returned as a string, not an int. [...]
Posted 02 Feb 2007 at 8:21pm #
[...] first entry shows how I can fix the problem (thank you, [...]
Posted 02 Feb 2007 at 8:30pm #
Nice!
Ecto has been downloading my blog entries again.
Thank you, Erik and Llyod!
Posted 19 Feb 2007 at 2:23pm #
[...] to figure out why Ecto wasn’t downloading posts. turns out WordPress 2.1 has a bug. Fix via NSLog(); Tags: Uncategorized Blog [...]