XMLRPC not returning correct categoryIDs

  • Author
    Posts
  • #43446

    waterwars
    Member

    I have been using ecto on a Mac to post. Lately ecto has been hanging when trying to retrieve wordpress entry categories. I thought is was an ecto problem but now adriaan says that wordpress is not returning the categoryID correctly. Here’s what he says:

    The categoryID should be returned as a string, not an int. Please open a bug report with WordPress and ask them to fix the XMLRPC according to specs at http://www.movabletype.org/mt-static/docs/mtmanual_programmatic.html

    Hope this is the right support area to post this.


    Request with URL:
    http://waterwars.wordpress.com/xmlrpc.php
    and data:
    <?xml version="1.0" encoding="UTF-8"?>
    <methodCall>
    <methodName>mt.getPostCategories</methodName>
    <params>
    <param>
    <value><string>60</string></value>
    </param>
    <param>
    <value><string>waterwars</string></value>
    </param>
    <param>
    <value><string>******</string></value>
    </param>
    </params>
    </methodCall>
    Response:
    <?xml version="1.0"?>
    <methodResponse>
    <params>
    <param>
    <value>
    <data>
    <value><struct>
    <member><name>categoryName</name><value><string>Ethanol</string></value></member>
    <member><name>categoryId</name><value><int>30032</int></value></member>
    <member><name>isPrimary</name><value><boolean>1</boolean></value></member>
    </struct></value>
    </data>
    </value>
    </param>
    </params>
    </methodResponse>

    See here for the support thread at ecto:
    http://bb.infinite-sushi.com/viewtopic.php?t=2116

    #43576

    timethief
    Member

    I’ll leave this to staff ~ ecto should be no problem. http://faq.wordpress.com/2006/01/20/xml-rpc-and-desktop-apps/

    #43639

    drmike
    Member

    Just for reference when you leave one for the staff, drop them a feedback if you didn’t do so. :)

    Feedback sent. I’m not big on XMLRPC so I can’t help on this one.

    -drmike

    #43655

    nertz
    Member

    I am also experiencing this problem. Will staff reply to this thread when they find a fix?

    #43670

    timethief
    Member

    @nertz
    When we up and running, your best bet is to use the feedback button and let staff know your blog is also affected. Otherwise they may not know this is the case. Be sure to include a link back to this thread in your feedback.

    #43683

    options
    Member

    ah.., now I see why the desktop SharpMT refused to retrieve a categories list.

    apparently, as well as ecto it sticks to standard specs (instead of making a workaround like all others clients developers [have to] do ;-)

    #43684

    andy
    Member

    I just made a small change to xmlrpc.php that I think will make categoryId a string. Please let me know if this problem is fixed.

    #43692

    waterwars
    Member

    Thanks Andy, looks like ecto is working again.

    #43762

    nertz
    Member

    My thanks to Andy as well! The categories are successfully retrieved with no hangup.

    #43940

    jimhenderson
    Member

    I am having the same problem with Ecto and WordPress. It worked well for me now I keep getting a return from WordPress saying “Could not parse response for file upload”
    Any ideas what is going on here please?

    This is the first part from my console log.

    ‘Request with URL:
    http://jimhenderson.wordpress.com/xmlrpc.php.
    and data:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <methodCall>
    <methodName>metaWeblog.getRecentPosts</methodName>
    <params>
    <param>
    <value><string>183578</string></value>
    </param>
    <param>
    <value><string>jimhenderson</string></value>
    </param>
    <param>
    <value><string>******</string></value>
    </param>
    <param>
    <value><i4>20</i4></value>
    </param>
    </params>
    </methodCall>

    Response:
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>

    <head profile=”http://gmpg.org/xfn/11″>
    <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
    <title> Jim Henderson’s Blog</title>’

    #43941

    timethief
    Member

    Have you sent in a feedback to staff so a support ticket can be created and the matter can be dealt with? I’m asking because staff so not always have the time to check threads here on the forum. I’m also recommending that you include a link back to this thread in your feedback.

    #43988

    After upgrading to WordPress 2.1 ecto is hanging again. It’s the same problem:

    Response:
    <?xml version=”1.0″?>
    <methodResponse>
    <params>
    <param>
    <value>
    <data>
    <value><struct>
    <member><name>categoryName</name><value><string>fundgrube</string></value></member>
    <member><name>categoryId</name><value><int>5</int></value></member>
    <member><name>isPrimary</name><value><boolean>1</boolean></value></member>
    </struct></value>
    </data>
    </value>
    </param>
    </params>
    </methodResponse>

    #43989

    timethief
    Member

    @grimaldello
    I urge you to send this information to staff by way of a feedback. I’m asking this because staff so not always have the time to check threads here on the forum.

    #43990

    drmike
    Member

    Well if you’re using wordpress 2.1, then you’re trying to access a blog not located here at wordpress.com. You need to be over at http://wordpress.org as you would be running different software than we are here at wp.com.

    #43994

    gusleig
    Member

    I have a blog gusleig.com afte I upgraded to wordpress 2.1 ecto stop workint, it says “retrieving categories” forever and stucks.
    Can you please tell the modification you made in the xmlrpc.php to fix this?

    #43995

    drmike
    Member

    As per my posts a few lines up, you need to be at http://wordpress.org as you’re running different software than we do here at wp.com.

    #43996

    lloydbudd
    Member

    Closing this thread.

    I have created #3662: Can’t post using Ecto b/c categoryID should be string not int.
    A patch is available for WordPress (core) and should be included in the first maintenance release of WordPress 2.1 .

The topic ‘XMLRPC not returning correct categoryIDs’ is closed to new replies.