Chatbot not displaying
-
I’ve installed and activated the plugin, but it doesn’t show in the frontend 🙁
What could be the reason?The page I need help with: [log in to see the link]
-
Hello
First of all, thank you for installing our plugin.
First of all, please have a look at the FAQ : https://www.smartsearchwp.com/en/faq/
We’ve already answered quite a few questions in the FAQ. If you still have a problem, please come back here 😉
Thank you very much.
Hi!
Thank you for your swift reply. I’ve checked the FAQ and have sucessfully tested the plugin on various sites. However, I can’t reproduce the Chatbot not showing 🙁
There is no error message of any kind, embedding worked. There are traces of the plugin when taking a look at the source code.
Debuging only shows this:
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/naboen/public_html/wp-content/plugins/smartsearchwp/includes/wdgpt-config.php on line 151
okay, is there any information in the “error log” section?
If it worked on other sites, it’s either linked to the theme or to another plugin (e.g. cache) that’s preventing the SmartSearchWP plugin from working.
Let me know…
JC
There is nothing in the error log.
I have a almost identical copy on a staging server, and there the Chatbot is showing.
When I compare the sources, the following section is missing from the “problematic” site (site relevant information replaced by DATA below):
<div id="chatbot-container">
<div id="chatbot-header">
<img id="pluginimg" src="DATA"></img>
<div id="chatbot-title">Kjell-I</div>
<div id="chatbot-resize"><i class="fa-solid fa-expand"></i></div>
<div id="chatbot-reset"><i class="fa-solid fa-trash-can"></i></div>
<div id="chatbot-close"><i class="fa fa-times" aria-hidden="true"></i></div>
</div>
<div id="chatbot-body">
<div id="chatbot-messages">
<div class="chatbot-message assistant">
<div>
<img class="chatbot-message-img" src="DATA" alt="Chatbot Image">
<span class="response assistant">Hvordan kan jeg hjelpe deg?</span>
</div>
</div>
</div>
<div id="chatbot-input-container">
<button id="wdgpt-speech-to-text" class="chatbot-btn-speech"><i class="fa fa-microphone" aria-hidden="true"></i></button>
<input type="text" id="chatbot-input" placeholder=" Jeg er Kjell-I, din KI-assistent. Hvordan kan jeg hjelpe deg?">
<button id="chatbot-send" class="chatbot-btn-send"><i class="fa fa-paper-plane" aria-hidden="true"></i></button>
</div>
<div id="chatbot-disclaimer">
<p>Denne tjenesten er drevet av kunstig intelligens og er tenkt som hjelp og ikke fasit.</p>
</div>
</div>
</div>Thanks for the detailed information. The fact that the chatbot’s HTML code is missing from the main site while it is present on the staging points us in the right direction. Can you try these steps in order:
- Clear all caches:
- WordPress cache if you use a cache plugin
- Server cache if you are using one
- Browser cache
- If that doesn’t solve the problem:
- Can you check the JavaScript console (F12 > Console) for errors?
- Can you temporarily disable the other plugins to see if any of them interfere?
- If the problem persists :
- Check that your theme calls wp_footer() in its footer.php
- Temporarily try switching to a default theme like Twenty Twenty-Four to see if the chatbot appears.
Keep me informed of the results of these tests so that I can help you more precisely.
I’ve just received feedback from the hosting company:
The issue was solved by enabling allow_url_fopen (PHP 8.3).
Hello,
ok, I’ll mention it in the FAQ on the site. Thank you very much for your feedback!
JC
- Clear all caches:
The topic ‘Chatbot not displaying’ is closed to new replies.