Fix Translate Text Explorer form functionality

Created on 20 October 2025, 6 days ago

Problem/Motivation

When using the Translate Text Explorer, it always results in an exception:

An error occurred
The following error occurred while processing your request:

Form errors cannot be set after form validation has finished.

Of the following exception type:

LogicException

The reason seem to be the inconsistent use of a prefix in the form code.

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

Have an translate text type of a provider (like ai_provider_deepl) enabled, and go to /admin/config/ai/explorers/translation_generator, trying to submit the form.

Proposed resolution

Fix the prefix in a function call.

🐛 Bug report
Status

Active

Version

2.0

Component

AI API Explorer

Created by

🇫🇮Finland jhuhta

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