AI Automators CKEditor plugin is broken

Created on 4 June 2025, 3 days ago

Problem/Motivation

Setup a job and run - it looks weird and you get:

The website encountered an unexpected error. Try again later.



InvalidArgumentException
: Field selected_text is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField()
(line 617
of core/lib/Drupal/Core/Entity/ContentEntityBase.php
).

Drupal\Core\Entity\ContentEntityBase->get() (Line: 658)
Drupal\Core\Entity\ContentEntityBase->set() (Line: 147)
Drupal\ai_automators\Service\Automate->run() (Line: 418)
Drupal\ai_automators\Plugin\AICKEditor\AiAutomatorsCKEditor->ajaxGenerate()
call_user_func_array() (Line: 69)
Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (Line: 112)
Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 241)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
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: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Proposed resolution

Fix so it works again.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI CKEditor

Created by

🇩🇪Germany marcus_johansson

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