• Hello,

    I am experiencing an issue with the WooCommerce REST API on my site. When attempting to use the API, I receive the following error:

    wp-json/wc/v2/?consumer_key=invalid&consumer_secret=invalid

    “In most cases this means that permalink structure is set to Plain or REST API is disabled or hidden by some WP security plugin such as Defender”

    Here’s what I’ve already tried to resolve the issue:

    1. Permalink Structure: The permalink structure is not set to “Plain” (Simple); it is currently set to “Post Name.”
    2. Security Plugins: I’m using WP Hide & Security Enhancer Pro, and I suspect that it might be interfering with the required API endpoints for WooCommerce. I’ve tried disabling certain options in WP Hide but the issue persists.
    3. API Keys: I’ve generated new WooCommerce API keys with the correct permissions (read/write), but I still encounter the error with valid keys.
    4. Cloudflare: I have also whitelisted the site in Cloudflare to ensure that it is not blocking the API requests, but the issue remains unresolved.

    I suspect that WP Hide might be modifying or blocking certain API paths necessary for the WooCommerce REST API (such as /wp-json/wc/v2/). Could you please guide me on how to configure WP Hide so that it does not interfere with these endpoints while maintaining the site’s security?

    Thank you in advance for your support!

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.