- Issue created by @dev.drupal.ln
- 🇩🇪Germany marcus_johansson
hi, I think 🐛 Use Interfaces instead of Class names in AgentHelper::construct Active should have fixed this - can you try against dev release?
TypeError: Drupal\ai_agents\PluginBase\AiAgentBase::__construct(): Argument #5 ($fileSystem) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileSystemD103 given, called in /var/www/html/modules/contrib/ai_agents/src/PluginBase/AiAgentBase.php on line 195 in Drupal\ai_agents\PluginBase\AiAgentBase->__construct() (line 158 of modules/contrib/ai_agents/src/PluginBase/AiAgentBase.php).
Drupal\ai_agents\PluginBase\AiAgentBase::create() (Line: 81)
Drupal\ai_agents\Plugin\AiAgent\FieldType::create() (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance() (Line: 61)
Drupal\ai_agents\Form\AiAgentsSettingsForm->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 120)
Drupal\cdn\StackMiddleware\DuplicateContentPreventionMiddleware->handle() (Line: 57)
Drupal\advban\AdvbanMiddleware->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
I am using S3 file system module in my website but when I installed the module Ai Agent and Going to add configurations then I faced this error on this page : /admin/config/ai/agents
Active
1.0
Code
hi, I think 🐛 Use Interfaces instead of Class names in AgentHelper::construct Active should have fixed this - can you try against dev release?