TypeError: strtr(): Argument #1 ($string) must be of type string, array given in strtr()

Created on 11 October 2024, 5 months ago

Problem/Motivation

When upgrading to version 8.x-2.0beta4 I found that the TamperFormBase sets an 'id' attribute as an array. I believe it should be a string.

When visiting this path : https://exampledomain.site/admin/structure/feeds/manage/import_ad_users/...

The following error is thrown :
TypeError: strtr(): Argument #1 ($string) must be of type string, array given in strtr() (line 546 of themes/contrib/aristotle/aristotle.theme).

Steps to reproduce

- Install the `8.x-2.0beta4` version by command

composer require 'drupal/feeds_tamper:^2.0@beta'

- Take a look to the file `docroot/modules/contrib/feeds_tamper/src/Form/TamperFormBase.php
- see line 86 ('#attributes' => ['id' => ['plugin-config']])

Proposed resolution

- replace line 86 with '#attributes' => ['id' => 'plugin-config'],

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024