• Resolved ImageSaadHamid

    (@saadhamid)


    Hi I am using the latest version of the plugin and getting this strange error when a user tries to chat with the bot on my website “Database Error: Could not create a new conversation.”

    Just wondering what might be happening and how can I fix this?

    I have tried to deactivate/activate plugin multiple times. Also tried to get a new key from openrouter and tried other models – have tried everything to reset the plugin settings and diagnose the issue but still getting the error

    It would be great if I can get help on this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ImageNewCodeByte

    (@newcodebyte)

    Hello @saadhamid ,

    Thank you for reaching out and for providing such detailed information. I’m the developer of the plugin, and I’ll help you solve this.

    The error message “Database Error: Could not create a new conversation” indicates a very specific problem: the plugin is trying to start a new chat by creating an entry in its database table, but the database operation is failing.

    This almost always means that one of the plugin’s required database tables, wp_newcodebyte_chatbot_conversations, was not created correctly during the last update. Your attempts to deactivate/reactivate were the right first step, but it seems something is preventing the automatic creation process.

    Please do NOT delete the plugin, as this would remove all your saved settings.

    Instead, could you please help me diagnose the issue with this simple check?

    Step 1: Check if a Database Table is Missing

    1. Please log in to your website’s database management tool (like phpMyAdmin, which is usually available in your hosting control panel).
    2. Select your WordPress database.
    3. Look at the list of tables and check if a table named wp_newcodebyte_chatbot_conversations exists. (Note: the wp_ prefix might be different on your site, for example wp123_).

    Please let me know the result:

    • Case A: The table is missing.
    • Case B: The table exists.

    Based on your answer, I can provide a safe and precise solution. If the table is missing (which is the most likely cause), I will guide you on how to trigger its creation again without losing any of your settings.

    Thank you for your patience as we get this sorted out.

    Best regards,
    NewCodeByte

    Plugin Author ImageNewCodeByte

    (@newcodebyte)

    Thanks for your answer!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.