LogicException when adding new image field and selecting OpenAi as AI provider

Created on 17 November 2024, about 1 month ago

Problem/Motivation

Hi,

I'm no longer able to select OpenAI as the AI provider on newly created image fields.

The watchdog shows:

LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 1920 of /var/www/***/core/lib/Drupal/Core/Database/Connection.php).

Steps to reproduce

- Create a new image field (in my case on Taxonomy term entity)
- Under "Advanced" select "OpenAI" as the AI provider.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Automators

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

Production build 0.71.5 2024