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

Post to Wordpress via the Wordpress Rest API #220

Open
P4ul2000 opened this issue May 28, 2023 · 3 comments
Open

Post to Wordpress via the Wordpress Rest API #220

P4ul2000 opened this issue May 28, 2023 · 3 comments

Comments

@P4ul2000
Copy link

Has anyone managed to post data to the Wordpress hosted on Yunohost please?

If so, what is the setup needed please as I always get connection rejected despite setting up app specific passwords etc.

Thank you!

@Craytoss
Copy link

I have set up WooCommerce Rest API through Wordpress but get 404 not found errors when using GET API on Postman, I have set permissions for everyone to bypass SSO on both wordpress and wordpress admin but still can't get a callback.

@P4ul2000
Copy link
Author

I don't think I ever sorted this out. I have just done a quick chat gpt for you and it says:

Web Server Configuration Conflicts:

YunoHost’s Web Server Setup: YunoHost typically uses Nginx or Apache as the web server. The default configurations provided by YunoHost for WordPress might not fully accommodate the specific routing requirements of the WordPress REST API.
URL Rewriting Issues: The REST API relies on pretty permalinks (e.g., /wp-json/) to function correctly. If URL rewriting is not properly configured, API endpoints may not be accessible.

From what I can remember it was possible to read from the wordpress api, but I could not write back to it. I would still be interested to know if there is a solution.

@ntreza
Copy link

ntreza commented Jan 3, 2025

Same issue as P4ul2000.
I cant access the REST API to post. I get the 401 not authorized error.
I tried WP without YUNOHOST and I can post via REST API.

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