Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

API URL not available / wp_api_keys is not created #48

Open
webslice opened this issue Jul 14, 2017 · 1 comment
Open

API URL not available / wp_api_keys is not created #48

webslice opened this issue Jul 14, 2017 · 1 comment

Comments

@webslice
Copy link

Hello,

I have installed Rooftop CMS on my own AWS EC2 instance, and I have followed the following guide: https://rooftopcms.readme.io/docs/installing-a-development-environment except for the VVV part of course.

The CMS itself seems to be working fine. When I tried to add a user for the API key, I got an error. After checking out the issues on GitHub, the fix in issue #28 seems to have worked for me as well by creating the appropriate table:

CREATE TABLE wp_api_keys ( id MEDIUMINT NOT NULL AUTO_INCREMENT, key_name VARCHAR(256) NOT NULL, domain VARCHAR(256) NOT NULL, api_key VARCHAR(256) NOT NULL, user_id INTEGER NOT NULL, PRIMARY KEY(id), INDEX(domain), INDEX(api_key));

After this I was able to create the user, but I was not able to authenticate with this API key, because it seems that the /wp-json/wp/v2/posts is missing. I unfortunately receive a 404.

What could possibly go wrong here? Did I miss a step or something that specifically creates MySQL tables, and installs the API endpoint etc? If you need more information, please let me know.

Thank you in advance!

@edtjones
Copy link
Member

Hi @webslice sorry for the slow reply to this. Have you pulled the latest from Master? The WP-API plugin got rolled into the main WordPress project at version 4.8; I wonder if you have some conflicting dependencies?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants