Plugin causing WC API products failure
-
Hi there,
We’ve been using your plugin on our WooCommerce website for a number of years. We only use the TAX Display module for the tax toggle functionality.
In the past couple of weeks we’ve updated our WP, Woo and all plugins for the first time in a little while. At first it seemed everything was working well but I’ve just noticed that the API call between our website and our inventory management system has failed since the date we updated your plugin. It works fine for all pages except the last and then fails before completion.
When I recreate the exact API call in Postman (which is: /wc-api/v3/products) it works okay except for the very last page of results, where the following is being printed before the start of the “products” JSON:
<input?type="hidden"?id="wcj-button-toggle-tax-display-nonce"?name="wcj-button-toggle-tax-display-nonce"?value="fe0195a38f"?/><input?type="hidden"?name="_wp_http_referer"?value="/wc-api/v3/products?consumer_key=XXXX&consumer_secret=XXXX&fields&page=42&type&category&sku&filter%5Blimit%5D=50"?/>
I have edited the key and secret for security.
The above is obviously malforming the JSON and therefore producing a failure.
I’m not sure why this is happening but how do I go about preventing the above from being printed above the JSON in the API response?
Thanks in advance,
Jack
- The topic ‘Plugin causing WC API products failure’ is closed to new replies.