- Issue created by @mandclu
- ๐ฎ๐ณIndia vinodhini.e chennai
vinodhini.e โ made their first commit to this issueโs fork.
I used the AI Assistant to add a content type for posting movie reviews, as outlined in this video:
https://drive.google.com/file/d/1pr5ez7iEognzK4XGONwNs0wvGu_nINMO/view?u...
Every time it creates the content type, there is an error like this:
Warning: Undefined array key "field_name" in Drupal\Core\Field\BaseFieldDefinition->getName() (line 111 of /var/www/html/web/core/lib/Drupal/Core/Field/BaseFieldDefinition.php)
#0 /var/www/html/web/core/includes/bootstrap.inc(104): _drupal_error_handler_real()
#1 /var/www/html/web/core/lib/Drupal/Core/Field/BaseFieldDefinition.php(111): _drupal_error_handler()
#2 /var/www/html/web/core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php(148): Drupal\Core\Field\BaseFieldDefinition->getName()
#3 /var/www/html/web/core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php(87): Drupal\options\Plugin\Field\FieldType\ListItemBase->storageSettingsForm()
#4 /var/www/html/web/modules/contrib/ai_agents/src/Plugin/AiFunctionCall/GetFieldStorageForm.php(132): Drupal\options\Plugin\Field\FieldType\ListIntegerItem->storageSettingsForm()
#5 /var/www/html/web/modules/contrib/ai_agents/src/PluginBase/AiAgentEntityWrapper.php(935): Drupal\ai_agents\Plugin\AiFunctionCall\GetFieldStorageForm->execute()
#6 /var/www/html/web/modules/contrib/ai_agents/src/PluginBase/AiAgentEntityWrapper.php(423): Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->executeTool()
#7 /var/www/html/web/modules/contrib/ai_agents/src/PluginBase/AiAgentEntityWrapper.php(486): Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability()
#8 /var/www/html/web/modules/contrib/ai_agents/src/Plugin/AiFunctionCall/AiAgentWrapper.php(175): Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability()
#9 /var/www/html/web/modules/contrib/ai_agents/src/PluginBase/AiAgentEntityWrapper.php(935): Drupal\ai_agents\Plugin\AiFunctionCall\AiAgentWrapper->execute()
#10 /var/www/html/web/modules/contrib/ai_agents/src/PluginBase/AiAgentEntityWrapper.php(423): Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->executeTool()
#11 /var/www/html/web/modules/contrib/ai/modules/ai_assistant_api/src/Service/AgentRunner.php(73): Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability()
#12 /var/www/html/web/modules/contrib/ai/modules/ai_assistant_api/src/AiAssistantApiRunner.php(316): Drupal\ai_assistant_api\Service\AgentRunner->runAsAgent()
#13 /var/www/html/web/modules/contrib/ai/modules/ai_chatbot/src/Controller/DeepChatApi.php(169): Drupal\ai_assistant_api\AiAssistantApiRunner->process()
#14 [internal function]: Drupal\ai_chatbot\Controller\DeepChatApi->api()
#15 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#16 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(622): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#18 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#19 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#20 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#21 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#22 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#23 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#24 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#25 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#26 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#27 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#28 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#29 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(53): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#30 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#31 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(715): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#32 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#33 {main}
Please provide information like AI modules enabled, which AI provider, browser, etc.
On a fresh copy of Drupal CMS, install the AI recipe. Ask the assistant to add a content type for posting movie reviews.
The content type seems to (mostly) work as expected, so this seems to be a problem with setting the field label.
Active
1.2
...to be triaged
vinodhini.e โ made their first commit to this issueโs fork.