Open veryrobin opened 11 years ago
Do you have any more detail?
The error detail info same as "https://github.com/alexjamesbrown/JoeBlogs/issues/21"
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。
Yeah,I got it! Modify The JoeBlogs.XmlRpcInterfaces.IWordPressXmlRpc 86 Line code:"[XmlRpcMethod("wp.editPost")]" to [XmlRpcMethod("metaWeblog.editPost")].
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/alexjamesbrown/JoeBlogs/issues/26#issuecomment-18485535 .
I try it........
Actually, looks like metaWeblog.editPost was never implemented.
Editpost return error "invalid postid"!!! @wordpress 3.5.1