Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter alexschneider_ru

    (@alexschneider_ru)

    The error in php error log is:

    [17-Nov-2023 09:00:14 UTC] PHP Warning: Trying to access array offset on value of type null in /*********/public_html/wp-content/plugins/ai-engine/classes/engines/openai.php on line 478
    [17-Nov-2023 09:00:14 UTC]
    [17-Nov-2023 09:00:14 UTC] Got an unexpected response from OpenAI. Check your PHP Error Logs.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @alexschneider_ru,

    I don’t see why you are getting this error; can you make sure you are using the latest version of AI Engine? Then, could you tell us which model you use, and how we could replicate what you are trying to do?

    Thread Starter alexschneider_ru

    (@alexschneider_ru)

    I am using AI Engine v1.9.99.

    Here is my settings:

    I tried to change the model but the error remained the same.

    Hello! I also started having this problem two days ago. What does this have to do with not only your plugin, but also other plugins for integration with OpenAi. I noticed that if the site is on Russian hosting, then there is no output from OpenAi at all, or the message “The model predicted completion…” is displayed. And even if, for example, you specify the wrong API key, then instead of the displayed error “incorrect API key”, the result displays “The model predicted completion…” or is empty.

    But if you install the site along with the plugin on a hosting that is not in Russia, then everything works fine. This problem suddenly appeared two days ago. The OpenAi account is paid and there are no restrictions for Russia.

    Maybe you know what the problem might be?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Error in chatbot’ is closed to new replies.