Error Messages

JWT is not configurated properly

If you get this error after logging in, add this line to your wp-config.php file:

define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');

You can use any random string, it's best to make it long and complex. For example:

define('JWT_AUTH_SECRET_KEY', 'fS.vM]!q!1(g5hDE!F9_9w_bXLqH`?mWrarT9{2g,KzGSW:@*x_');

If you copy/paste the code above, make sure to change the secret key string.

No route was found matching the URL and request method.

This means the WP-API route you are trying to use does not exist. Here are some common solutions:

  • A required plugin is not installed or activated, such as AppCommunity, WooCommerce, etc. Please check the setup documentation for the feature you are trying to use.
  • If using a custom post type, you did not add the route to the API as described here
  • There is a problem with your WP-API