JoeBlogs icon indicating copy to clipboard operation
JoeBlogs copied to clipboard

Invalid Response?

Open tad3j opened this issue 11 years ago • 2 comments

I am playing around with your awesome library, and I have some problems (it seems like response is invalid for some methods).

For example: When I try to GetPages I get exception "response contains string value where integer expected". When I try to GetPostStatusList I get "response contains struct value where array expected". ...

I'm using the latest WP version, 3.6.

Is it me or is there actually something wrong with response/library?

tad3j avatar Aug 14 '13 14:08 tad3j

Response. The library does what you'd expect, but there was an error in the original WordPress XML-RPC implementation for some Blogger methods. Strangely, they were not consistent; GetPage was an int, but GetPages was an array of strings, not an array of ints as you'd expect.

I actually have rewritten a part of the library to account for the new WordPress methods, and all these are avoided. I'll see if I can push them to the dev branch this week (I just moved so have yet to set up my dev computer.)

Kevin

kevininspace avatar Aug 14 '13 23:08 kevininspace

Thanks for quick response. I see, sorry to hear it was changed...however, looking forward for new release then.

Good luck with it.

Tadej

tad3j avatar Aug 15 '13 01:08 tad3j