Add AI Automator field form breaks if fields not available in any bundle

Created on 19 November 2025, 3 months ago

Problem/Motivation

If a user tries to add an AI automator field, and for any entity and bundle, if fields are not present, then on submission, the site breaks.
This is the error message in the logs

Error: Typed property Drupal\ai_automators\Entity\AiAutomator::$field_name must not be accessed before initialization in Drupal\ai_automators\Entity\AiAutomator->calculateDependencies() (line 125 of /ai/modules/ai_automators/src/Entity/AiAutomator.php).

Steps to reproduce (required for bugs, but not feature requests)

Please provide information like AI modules enabled, which AI provider, browser, etc.

Proposed resolution

Remaining tasks

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

🐛 Bug report
Status

Active

Version

2.0

Component

AI Automators

Created by

🇮🇳India anmolgoyal74

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024