Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Response? #31

Open
tad3j opened this issue Aug 14, 2013 · 2 comments
Open

Invalid Response? #31

tad3j opened this issue Aug 14, 2013 · 2 comments

Comments

@tad3j
Copy link
Contributor

tad3j commented Aug 14, 2013

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?

@kevininspace
Copy link

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

@tad3j
Copy link
Contributor Author

tad3j commented Aug 15, 2013

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

Good luck with it.

Tadej

alexjamesbrown added a commit that referenced this issue Aug 29, 2013
Fixing part of issue #31 - GetPages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants