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

I have this error when create new post to wordpress by node #989

Closed
cmdntd opened this issue Sep 26, 2020 · 5 comments
Closed

I have this error when create new post to wordpress by node #989

cmdntd opened this issue Sep 26, 2020 · 5 comments

Comments

@cmdntd
Copy link

cmdntd commented Sep 26, 2020

I have this error when create new post to wordpress by node
(My user permission: administrator)

ERROR: Wordpress Error: Sorry, you are not allowed to create posts as this user.

Error: Wordpress Error: Sorry, you are not allowed to create posts as this user.
    at Object.wordpressApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Wordpress/GenericFunctions.js:35:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
@RicardoE105
Copy link
Contributor

Hey @cmdntd. Did you install the basic authentication plugin in your WordPress instance? If not please do, you download it here and then import it into WordPress. I believe it should fix the issue. If it does not or you have a question, please come back to me.

@cmdntd
Copy link
Author

cmdntd commented Sep 28, 2020

I installed it and config .htaccess like this instruction here:
https://community.n8n.io/t/i-have-error-when-try-to-post-to-wordpress/2455

@janober
Copy link
Member

janober commented Sep 28, 2020

You can maybe have a look at those issues. Maybe they help:
WP-API/Basic-Auth#51
WP-API/Basic-Auth#35

@krynble
Copy link
Contributor

krynble commented Feb 10, 2021

Hi @cmdntd were you able to fix the issue you were facing?

It does not seem to be a problem with n8n itself but let us know if you still need help.

@krynble krynble closed this as completed May 17, 2021
@nukeador
Copy link

nukeador commented Nov 1, 2023

I was facing similar issues, and it seems only wp users with editor role or up can auth (not sure if it's a wp thing or a n8n thing)

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

5 participants