Common Issues
The chat button does not appear on my store#
Symptom: No chat bubble in the bottom corner of the storefront.
Cause: WooCommerce is inactive, the plugin is inactive, the widget is turned off for mobile, or a caching or optimisation plugin strips the script.
- Check Plugins: both WooCommerce and LeetCart AI for WooCommerce must be active. The admin shows a red notice if WooCommerce is missing.
- On a phone, check Chatbot Builder → Show on Mobile.
- Clear your page cache and any JavaScript optimisation (defer, combine) for the
swpr-chat-widgetscript, then reload. - Open the browser console. A 404 for
/wp-json/swpr/v1/means the REST API is blocked; see the next issue.
“Sorry, I could not answer that right now”#
Symptom: Every message gets the generic apology.
Cause: The AI provider rejected the request: wrong or missing API key, no billing on the provider account, a retired model, or the server cannot reach the provider.
- Go to Connections, click Save Changes, then Test connection. The message tells you whether the provider accepted the key.
- If the key is defined in
wp-config.php, confirm the constant is spelledSWPR_API_KEYand has no extra spaces. - Check the provider account has billing or credits set up.
- Open Chat History → View on the failed conversation: the “Error: …” line shows the provider’s actual message.
- Still stuck? Set
WP_DEBUGandWP_DEBUG_LOGtotrueand look forLeetCart AI:lines inwp-content/debug.log.
“Invalid security token” or the chat works for guests but not when I am logged in#
Symptom: Logged-in users get an error; guests chat normally.
Cause: A stale page cache served an old REST nonce to the logged-in user.
- Exclude logged-in users from page caching, or exclude pages where the widget is used.
- Clear the cache and reload the storefront.
Shoppers hit the rate limit although they sent only a few messages#
Symptom: “Too many requests” replies after one or two messages, especially behind Cloudflare or a load balancer.
Cause: Every visitor reaches PHP with the same proxy IP, so they share one rate-limit counter.
- Add the
swpr_client_ipfilter from Developer Hooks to read the real visitor IP from your proxy’s header. - As a short-term workaround, raise Max Messages Per Minute (per IP) or set it to 0.
The assistant shows products I changed or deleted#
Symptom: Old prices or stock in product cards.
Cause: Search results are cached for five minutes.
- Go to Dashboard → Quick Actions → Clear Product Cache.
- Confirm the product is published and in stock; out-of-stock and draft products are excluded automatically.
The assistant recommends products from a category I excluded#
Symptom: Excluded products still appear.
Cause: The setting was not saved, or cached results from before the change are still being served.
- Open AI Persona → Product Exclusions, confirm the category is ticked and click Save Changes.
- Go to Dashboard → Quick Actions → Clear Product Cache.
- Open the product in Products and check its categories. A product is excluded when any of its categories is ticked; if it still appears, it is only in categories you have not ticked.
Colour or size filters are ignored#
Symptom: “blue shirt in large” returns shirts of all colours.
Cause: Your attributes are not the global pa_color and pa_size attributes, or they are custom per-product attributes.
- In Products → Attributes, create global attributes with the slugs
colorandsizeand assign them to your products. - Clear the product cache; the attribute lists are cached for one hour.
The License screen says “Licensing is not configured yet”#
Symptom: No key field on the License screen.
Cause: The plugin was installed from a development checkout rather than the release zip.
- Download the zip from your technoleet.dev account (Dashboard → Downloads).
- Deactivate the installed copy, replace the
leetcart-ai-for-woocommercefolder inwp-content/plugins/with the one from the zip (or upload the zip under Plugins → Add New → Upload Plugin and choose to replace the current version), then activate it again. Settings and chat logs are kept because the plugin was not deleted.
No updates are offered#
Symptom: A newer version exists but Dashboard → Updates shows nothing.
Cause: The license is inactive or expired, or the update check is cached.
- Go to LeetCart AI → License and confirm Status is active and Automatic Update is enabled.
- Click the check-now button next to Last Checked.
- Visit Dashboard → Updates and click Check Again.
