Need help? Check out our Support site, then


XMLRPC not returning correct categoryIDs

  1. 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.

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

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

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

  3. 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

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

  5. @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.

  6. 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 ;-)

  7. 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.

  8. Thanks Andy, looks like ecto is working again.

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

  10. 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>'

  11. 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.

  12. saschaodietrich
    Member

    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>

  13. @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.

  14. 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.

  15. 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?

  16. 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.

  17. 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 .

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags