Want To Add Extra Images Per Product Variation? Download This Free Plugin

Show swatches on archive / shop page not working, gives a bunch of errors

After updating the plugin I can’t select any of the swatches on my archive-page. After I select the swatches and click “Add to cart”, nothing happens.

Archive page: https://kuusama.fi/product-category/aw-2022-2023/

 

Console shows errors like:

“https://kuusama.fi/wp-json/woo-variation-swatches/v1/archive-product/2749?_locale=user 403”

and

“archive product variations fetching failed: 2749 {code: ‘invalid_json’, message: ‘…’}”

FYI: The “show swatches on archive / shop page” has been deselected now, to prevent the errors.

Hakik Zaman

Hi Janne,

Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except the WooCommerce and WooCommerce Variation Swatches Plugin.

=> See if the problem persists. If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

Looking forward to hearing from you soon.

Thank you

Problem persists even if I disabled all of my plugins. Also I noticed that the problem doesn’t occur on my localhost at all with the exact same setup (theme, plugins, database etc.).

On live version it just says on the console that:

“GET https://kuusama.fi/wp-json/woo-variation-swatches/v1/archive-product/2749?_locale=user 403″

And then:

“archive product variations fetching failed: 2749. {code: ‘invalid_json’, message: ‘The reply is not correct JSON.’}”

And then:

“GET https://kuusama.fi/wp-json/woo-variation-swatches/v1/archive-product/2739?_locale=user 403″

And it just goes through every archive-product on that page, giving the same 403 error.

 

Is this something that I should be in contact with my hosting service, or is it with the plugin?

Hakik Zaman

Hi Janne,

Please make sure, if you have any object cache enabled server or not.

If so, please flush the cache from your server settings and check again.

Thank You

I got the problem resolved, it wasn’t the plugin but a server-side problem after all.

Sorry for the inconvenience!