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

Editpost return error "invalid postid" #26

Open
veryrobin opened this issue May 26, 2013 · 7 comments
Open

Editpost return error "invalid postid" #26

veryrobin opened this issue May 26, 2013 · 7 comments

Comments

@veryrobin
Copy link

Editpost return error "invalid postid"!!! @WordPress 3.5.1

@alexjamesbrown
Copy link
Owner

Do you have any more detail?

@veryrobin
Copy link
Author

The error detail info same as "#21"

@veryrobin
Copy link
Author

I think I found the problem.

The JoeBlogs.XmlRpcInterfaces.IWordPressXmlRpc 86 Line code:
[XmlRpcMethod("wp.editPost")]
bool EditPost(int postid, string username, string password, XmlRpcPost content, bool publish);

The wordpress wp.editPost api :
Parameters
int blog_id
string username
string password
int post_id
struct content: See #wp.newPost for valid set of fields. Only needs to contain fields that you wish to modify; all other fields will retain their current values.

The JoeBlogs.WordPressWrapper Editpost function code:
public virtual bool EditPost(int postID, Post content, bool publish)
{
return _wrapper.EditPost(postID, Username, Password, Map.From.Post(content), publish);
}

So:parameters error. don't have blog_id and post_id position error。

@veryrobin
Copy link
Author

Yeah,I got it! Modify The JoeBlogs.XmlRpcInterfaces.IWordPressXmlRpc 86 Line code:"[XmlRpcMethod("wp.editPost")]" to [XmlRpcMethod("metaWeblog.editPost")].

@alexjamesbrown
Copy link
Owner

Are you able to commit this into the git repository as a a pull request?

On 27 May 2013 08:17, veryrobin notifications@github.com wrote:

Yeah,I got it! Modify The JoeBlogs.XmlRpcInterfaces.IWordPressXmlRpc 86
Line code:"[XmlRpcMethod("wp.editPost")]" to
[XmlRpcMethod("metaWeblog.editPost")].


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-18485535
.

@veryrobin
Copy link
Author

I try it........

@simon-duvall
Copy link

Actually, looks like metaWeblog.editPost was never implemented.

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

3 participants