rest_no_route - No route was found matching the URL and request method. - WP Simple Pay Documentation
  1. Home
  2. FAQs
  3. Common Problems
  4. rest_no_route – No route was found matching the URL and request method.
  1. Home
  2. FAQs
  3. rest_no_route – No route was found matching the URL and request method.

rest_no_route – No route was found matching the URL and request method.

WP Simple Pay uses WordPress’ REST API to process payment forms and the REST API endpoints must be accessible for payments to be processed.

Disabled REST API

Some WordPress security plugins disable the WordPress REST API by default. Ensure the WordPress REST API is accessible so WP Simple Pay can process payments.

You should be able to access https://your-website.com/wp-json/ if the REST API is available.

Invalid jQuery Script

Some WordPress themes or plugins enqueue their own copies of the jQuery Javascript library. Including multiple versions of jQuery, or a version other than the one that is included with WordPress can cause AJAX requests to become malformed or invalid.

Ensure the one and only version of jQuery being loaded by your website is the version that is included with WordPress.

ModSecurity

ModSecurity can also block internal API requests. See our documentation article on ModSecurity for more information.

Updated on November 17, 2020

Was this article helpful?

Related Articles