Error: Call to a member function newInstance() with ActionPluginDeriver

Created on 20 May 2025, 13 days ago

Problem/Motivation

Regarding #3525531 ๐Ÿ› Add AI Agent is not working Active , it is possible to get the following error...

Error: Call to a member function newInstance() on null in Drupal\ai\Plugin\AiFunctionCall\Derivative\ActionPluginDeriver->resolveRootDataType() (line 183 of ai/src/Plugin/AiFunctionCall/Derivative/ActionPluginDeriver.php).

Steps to reproduce

1. Install latest version of Drupal AI Agents module - 1.1.0-beta2
2. Go to AI Agents Settings โ†’ page
3. Click on + Add AI Agent โ†’ button

Proposed resolution

Add a fallback for the context definitions so that we don't run into that PHP error.

๐Ÿ› Bug report
Status

Active

Version

1.1

Component

AI Core module

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada RobLoach Earth

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