Hello there,
Good Day!!
We apologize for the inconvenience caused, and we’re here to assist you with this issue.
We have used one layer of security for our ajax requests, which is WP Nonce, but due to the caching mechanism from third party plugins/hosting, this security nonce is also cached, which causes this error “Something Went Wrong,Please try again after some time.”
Since you’re using the REST API Route, here are some alternative suggestions:
- Cache Timeout: Adjust the cache timeout settings in your caching plugin to reduce conflicts. This may help prevent the caching of nonce data, which can lead to errors.
- Google reCAPTCHA: Consider using Google reCAPTCHA v2 or v3. You will need a Site Key and a Secret Key for this. (Go to Admin Dashboard -> Instock Notifier -> Settings -> Google reCAPTCHA Settings -> Enable Google reCAPTCHA and select Version -> v2/v3. Enter both the Site Key and Secret Key for proper operation.)
These adjustments are aimed at mitigating caching conflicts and enhancing performance. We would appreciate it if you could revisit your review after trying these solutions. If the issue persists, please let us know, and we’d be happy to assist further.
Thanks.
Hello there,
We’d like to share some updates that should help with the issues you’ve been experiencing.
- Updated Google reCAPTCHA Settings Pathway:
Admin Dashboard -> Instock Notifier -> Settings -> Bot Protection -> Bot Protection through -> Google reCAPTCHA -> Enable Google reCAPTCHA in Subscribe Form (Enable) -> Enable Google reCAPTCHA Version -> v2/v3. Enter both the Site Key and Secret Key for proper operation.
- Introducing Turnstile as an Alternative: We’re also pleased to offer Turnstile as an additional option for bot protection. You will need a Site Key and a Secret Key for this. Go to Admin Dashboard -> Instock Notifier -> Settings -> Bot Protection -> Bot Protection through -> Turnstile -> Enable Turnstile in Subscribe Form (Enable) -> Turnstile Site Key -> Turnstile Secret Key.
Thanks.
I’m not using recaptha at all. Shortening cache time is odd because it starts to make cache useless if I have to purge it under every 12 hours.
I had the same issue. Adding Google reCAPTCHA to the back in stock notifier form did the trick.
It works now. I edited
$security = wp_create_nonce(‘codewoogeek-product_id-‘ . $product_id);
and changed $security to a fixed string.