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

Method EditPost returns error #21

Open
juanmalberti opened this issue Feb 26, 2013 · 3 comments
Open

Method EditPost returns error #21

juanmalberti opened this issue Feb 26, 2013 · 3 comments

Comments

@juanmalberti
Copy link

Hi,

First of all i want to thank you for your job.

I'm facing to an error with the EditPost method.

I'm trying to edit for example the Post title with this code:

WordPressWrapper blog = new WordPressWrapper("http://www.myblog.com/xmlrpc.php", "xxxx", "xxxx");
Post post = blog.GetPost(24782);
post.Title = "New title";
blog.EditPost(24782, post, true);

And I'm geting this error:

Server returned a fault exception: [404] Invalid post ID

On the line:

return _wrapper.EditPost(postID, Username, Password, Map.From.Post(content), publish);

Of the file:

WordPressWrapper.cs

What am I doing wrong?

Is it a known issue?

Thanks!

@diogoweb
Copy link

same problem here :/

@alexjamesbrown
Copy link
Owner

Hmm...
I'm in the middle of doing a fairly significant re-write of most of this wrapper...
I'll take a look at this and try and push a fix for it for now though!

@gregflorin
Copy link

I have the same problem, is there a solution ?

Thanks

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

4 participants