Load more not working in search
-
Hi WPBot Support Team,
I found an issue while using the chatbot site search feature.
When I search for something in the chatbot, the first results show correctly. But when I click on the “Load More” button, it shows a “Security check failed” error.
After checking, I found that the problem is due to a “wrong nonce being used in the AJAX request”. The function is expecting a different nonce than the one actually being sent.
When I fixed the nonce manually, the request started working properly. However, after that, another issue appears:
There is a line in your JavaScript file: /js/qcld-wp-chatbot-plugin.js
var json = $.parseJSON(res);This causes an error:
Uncaught SyntaxError: “[object Object]” is not valid JSONIt looks like the response is already a JSON object, so parsing it again is causing the issue.
Because of these problems, the “Load More” feature in chatbot search is not working properly.
Can you please check and fix this in the plugin file?
You must be logged in to reply to this topic.