Fatal Error on enabling

Created on 31 March 2025, 2 days ago

Problem/Motivation

Using the curent dev version of the module on a clean Drupal 10 install, I get the following fatal error trying to turn the AI Agents module on through the UI:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "ai_agent" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 142 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).

This appears to be related to code added on 11 March to src/PluginManager/AiAgentManager.php, specifically the

$this->mergeAgentConfigurations();

This seems to be trying to load the ai_agent entity storage handler before the ai_agent entity type exists? Presumably the plugin manager is getting created before the module has fully installed?

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom MrDaleSmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024