Error when generating a AI text in plugin
-
I have enabled the AI function in your plugin, a lifesaver, thanks!
I have not been able to generate a text yet. When filling in instructions the admin-ajax responds with an 500 error. The title and description do have text and i have enabled my Open AI api key.
The full PHP error is:
Can you guys help me out?
[Tue Aug 06 17:32:25.313525 2024] [lsapi:error] [pid 580168:tid 140114467915520] [client 84.87.181.200:62192] [host www.buydrinks.nl] Backend fatal error: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/ProductPrompt.php:295\nStack trace:\n#0 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/Prompt.php(41): ContentEgg\application\components\ai\ProductPrompt->prepareParams()\n#1 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/ProductPrompt.php(412): ContentEgg\application\components\ai\Prompt->query()\n#2 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/ProductPrompt.php(417): ContentEgg\application\components\ai\ProductPrompt->customPromptDescription()\n#3 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/AiProcessor.php(126): ContentEgg\application\components\ai\ProductPrompt->customPromptDescription1()\n#4 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/AiProcessor.php(31): ContentEgg\application\components\ai\AiProcessor::applayAiItem()\n#5 /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ModuleApi.php(76): ContentEgg\application\components\ai\AiProcessor::applayAiItems()\n#6 /home/deb146870/domains/buydrinks.nl/public_html/wp-includes/class-wp-hook.php(324): ContentEgg\application\components\ModuleApi->addApiEntryAi()\n#7 /home/deb146870/domains/buydrinks.nl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#8 /home/deb146870/domains/buydrinks.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#9 /home/deb146870/domains/buydrinks.nl/public_html/wp-admin/admin-ajax.php(192): do_action()\n#10 {main}\n thrown in /home/deb146870/domains/buydrinks.nl/public_html/wp-content/plugins/content-egg/application/components/ai/ProductPrompt.php on line 295\n, referer: https://www.buydrinks.nl/wp-admin/post.php?post=131072&action=edit
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.