limest
Forum Replies Created
-
Forum: Plugins
In reply to: [Kognetiks Chatbot for WordPress] Error: Duplicate request detected.Hi Stephen,
Thank you for the quick update! I downloaded and checked the latest version from your link, but I noticed the changes you mentioned don’t appear to be included:
1. Headers Already Sent Warning
The kognetiks_assign_unique_id() function in chatbot-chatgpt.php (lines 53-63) still has setcookie() without a headers_sent() check.2. Retry Limit
In chatbot-call-openai-api-assistant.php $maxRetries is still set to 10, not 3.Also, there’s no detection of consecutive failed status to stop retrying early when OpenAI keeps returning errors.
3. Ukrainian Translation Files
The following files are not present in the ZIP:- chatbot-globals-uk.php
- uk.php
Only CS, DE, EN, ES, FR, IT, PL, PT, and RU are included.
Could you please verify you uploaded the correct ZIP file? Perhaps an older version was uploaded by mistake?
I’ve implemented my own fixes for all the issues mentioned, so I consider this resolved on my end. I’m happy to share my changes if useful for the official release.
Thank you!
Best regards
Forum: Plugins
In reply to: [Kognetiks Chatbot for WordPress] Error: Duplicate request detected.Thank you for the quick response and the updated version!
Important clarification: I only have ONE shortcode on my site: [chatbot-2] which calls a single assistant. I don’t use multiple chatbots on the same page. The issue was that this single assistant shortcode wasn’t working at all (returning “error” with no response), while [chatbot] (general API) worked fine.
I tested the version you provided, but still encountered some issues that I had to fix:
1. Headers Already Sent Warning (line 58)
The setcookie() in kognetiks_assign_unique_id() still triggers a warning when headers are already sent. I added a headers_sent() check:if (!headers_sent()) {
setcookie(...);
}2. Infinite Retry Loop on Failed Runs
When OpenAI returns status: failed, the code keeps creating new runs in an infinite loop until timeout. I added detection of failed status and automatic stop after a few consecutive failures.3. Root Cause of My Original Issue
The assistant was failing because:max_prompt_tokenswas set too low (2000) for my assistant instructions (~5000+ tokens)- The model was returning server_error with very long instructions
- I had file_search enabled without a Vector Store attached
After shortening my instructions and moving content to a Vector Store file, everything works now.
4. Ukrainian Translation Files
I created translation files for my Ukrainian-Spanish site:- uk.php
- chatbot-globals-uk.php
If you’re interested, I can send you the Ukrainian translation files for other Ukrainian users.
Best regards
Forum: Plugins
In reply to: [Kognetiks Chatbot for WordPress] Error: Duplicate request detected.Thank you.
I installed the new version and checked it.My debug.log:
[Chatbot] [chatbot-analytics.php] Translation file not found for uk. Falling back to: /www/wp-content/plugins/chatbot-chatgpt/includes/analytics//languages/en_US.php
PHP Warning: Cannot modify header information – headers already sent in /www/wp-content/plugins/chatbot-chatgpt/chatbot-chatgpt.php on line 58
The chatbot error log only shows:
[Chatbot] [ERROR] [2025-12-20 19:31:15] [Session ID: N/A] [User ID: 1] [IP Address: xxxxxx] [Error:] []
I just discovered one nuance – it occurs when I use the assistant shortcode [chatbot-2] instead of the shortcode [chatbot]. The shortcode appears only once on the page. If I use the universal shortcode [chatbot], I get both the logs on the OpenAI platform and the bot’s responses. But not my assistant’s. But I have a shortcode configured in the GPT Assistants section. I’m confused.Forum: Plugins
In reply to: [Kognetiks Chatbot for WordPress] Error: Duplicate request detected.Hi, Stephen and thank you.
Unfortunately, it didn't help.
When sending a message (e.g., “test”), the chatbot returns “error”.
I did as you recommended. I've cleared and disabled LiteSpeedCache plugin, cleared Cloudflare cache.
This is my system:
Chatbot Version: 2.4.0
PHP Version: 8.3.25
PHP Memory Limit: 1024M
WordPress Version: 6.9
API STATUS: Success: Connection to the OpenAI API was successful!
I haven't been monitoring the use of the plugin for several months, so I can't even say when exactly the problem appeared.
These logs may be helpful:
[Chatbot] [ERROR] [2025-12-20 17:24:23] [Session ID: N/A] [User ID: 1] [IP Address: xxxxxx] [Error:] []
[Chatbot] [ERROR] [2025-12-20 17:24:59] [Session ID: N/A] [User ID: 1] [IP Address: xxxxxx] [Error:] []
[2025-12-20 17:30:53] [Chatbot] [Advanced Reset] Cache and locks reset by admin user ID: 1 - Cleared 55 entries
Test email from the Chatbot Conversation Digest system (my message appears 2-3 times, even though I only sent it once):
[2025-12-20 19:14:20] Visitor: hi
[2025-12-20 19:17:09] Visitor: hi
[2025-12-20 19:17:11] Chatbot: The system is busy processing requests. Please try again later.
[2025-12-20 19:55:51] Visitor: test
[2025-12-20 19:58:53] Visitor: test
[2025-12-20 20:01:54] Visitor: test
I found out that the OpenAI platform logs contained the following inputs:
System: You are a test function for Chat.
User: Write a one sentence response to this test message.
Instead of my messages. And as I see it, these are some kind of test inputs for the chatbot, not my “hi” messages to the assistant.Sorry for the delay in getting back to you. The site owner has decided not to change anything yet, so you can close the ticket. Thank you for trying to help
Thank you for your reply and for trying to help. The site uses Essential Addons for Elementor free version 5.9.21. From the beginning of my work on the customer’s site, the plugin was version 3.9.15, and then I updated to the latest version – 5.9.21.
There were also problems with the server, we transferred it to another VPS, tried different versions of php (up to 8.2), and settled on 7.4 because it was an outdated theme without the possibility of updates.
We also tried to test it with the twenty three theme. But there was a fatal error on the site, so I can’t say whether the button would work with it. We had to return to the current theme.
At the moment, the owner of the site has disabled the button on my recommendation. If it is possible, I will write back after the weekend when she is ready to enter the admin panel.
There are 3-4 java script errors in the console, but they relate to outdated cherry plugins, which are also duplicated in the theme. No notification about Essential Addons for Elementor until you click on the button.
Caching is now enabled on the site, but we tested without it, as I wrote earlierThank you! This version works for me.
I have disabled WP Rocket and cleared the browser page cache, if it is important to know. Also, in the HTML, the div tag with id=wfspb-main-content is empty (where the message should be). The developer tools console does not contain any errors related to this plugin. It is important for me to understand whether this situation can be fixed so that I know whether to recommend the client to buy the pro version
Forum: Plugins
In reply to: [Currency per Product for WooCommerce] Dont convert sale priceI have the same problem. I see the topic is resolved now. But there is no answers. How can I solve this problem when the crossed-out price remains with the original currency?