• Resolved Atanas Yonkov

    (@nravota12)


    I am getting the following error when trying to generate an article from posts => generate new

    I am working locally. have connected the plugin to my openai api key. The plugin successfully generates images but for some reason it is not working for generating content.

    • This topic was modified 1 year, 12 months ago by Atanas Yonkov.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @nravota12,

    Can you check your PHP Error Logs about this? Then we’ll know where the error comes from, it could be OpenAI, my plugin, or any other plugin in fact. Let’s look into it and fix it ??

    Thread Starter Atanas Yonkov

    (@nravota12)

    Hi @tigroumeow ,

    Thank you for your reply. I inspected the browser console and there is the following error:

    Additionally, I checked the error log and here is the info:

    [03-Apr-2023 21:30:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Rahul900day\Gpt3Encoder\mb_convert_encoding() in /var/www/html/wordpress/wp-content/plugins/ai-engine/vendor/rahul900day/gpt-3-encoder/src/Encoder.php:34
    Stack trace:
    #0 /var/www/html/wordpress/wp-content/plugins/ai-engine/vendor/rahul900day/gpt-3-encoder/src/Encoder.php(16): Rahul900day\Gpt3Encoder\Encoder::stringToBytes()
    #1 /var/www/html/wordpress/wp-content/plugins/ai-engine/classes/querytext.php(47): Rahul900day\Gpt3Encoder\Encoder::encode()
    #2 /var/www/html/wordpress/wp-content/plugins/ai-engine/classes/querytext.php(75): Meow_MWAI_QueryText->estimateTokens()
    #3 /var/www/html/wordpress/wp-content/plugins/ai-engine/classes/ai.php(188): Meow_MWAI_QueryText->checkFix()
    #4 /var/www/html/wordpress/wp-content/plugins/ai-engine/classes/rest.php(213): Meow_MWAI_AI->run()
    #5 /var/www/html/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1181): Meow_MWAI_Rest->make_completions()
    #6 /var/www/html/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_RES in /var/www/html/wordpress/wp-content/plugins/ai-engine/vendor/rahul900day/gpt-3-encoder/src/Encoder.php on line 34
    Plugin Author Jordy Meow

    (@tigroumeow)

    This is so weird you are getting this issue; I am actually even checking for the existence of that function before calling it…

    Which version of PHP are you using? If there anything a bit odd/special about your server? Also, you could simply enable the php-mbstring module for PHP. But normally, it’s set up by most hosting services.

    Anybody encounter this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting Error when Trying to Generate an Article’ is closed to new replies.