Automators: Warning: Undefined array key "field_content_random" in Drupal\ai_automators\AiAutomatorEntityModifier->entityHasConfig() (line 163 of /var/www/html/docroot/modules/contrib/ai/modules/ai_automators/src/AiAutomatorEntityModifier.php

Created on 18 February 2025, 4 days ago

Problem/Motivation

I am seeing a warning after deleting a field that has an automator enabled.

Warning: Undefined array key "field_content_random" in Drupal\ai_automators\AiAutomatorEntityModifier->entityHasConfig() (line 163 of /var/www/html/docroot/modules/contrib/ai/modules/ai_automators/src/AiAutomatorEntityModifier.php)
#0 /var/www/html/docroot/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 /var/www/html/docroot/modules/contrib/ai/modules/ai_automators/src/AiAutomatorEntityModifier.php(163): _drupal_error_handler()
#2 /var/www/html/docroot/modules/contrib/ai/modules/ai_automators/src/AiAutomatorEntityModifier.php(85): Drupal\ai_automators\AiAutomatorEntityModifier->entityHasConfig()

Steps to reproduce

In any content type add a full text field.
Check "Enable AI Automator".
Save the field first,
now if i delete the field and try to create a content it gives me a warning on content save.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Core module

Created by

🇮🇳India vakulrai

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

Comments & Activities

Production build 0.71.5 2024