Exception when creating a new config term vocab

Created on 16 October 2023, 11 months ago
Updated 8 November 2023, 10 months ago

Problem/Motivation

No config term vocabs can be created or edited.

Steps to reproduce

Go to the config terms vocabularies overview page and add a new config terms vocab. Enter a title and click save. The following exception is thrown:
TypeError: Drupal\config_terms\Form\OverviewTerms::__construct(): Argument #2 ($entity_type_manager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, Drupal\Core\Render\Renderer given, called in /var/www/web/modules/contrib/config_terms/src/Form/OverviewTerms.php on line 58 in Drupal\config_terms\Form\OverviewTerms->__construct() (line 48 of modules/contrib/config_terms/src/Form/OverviewTerms.php).

Proposed resolution

The issue seems to happen in the constructor of the OverviewTerms form class. The arguments entity_type_manager and renderer are in the wrong order.
This can be fixed by exchanging entity_type_manager and renderer with each other in either the constructor or the static create function.

πŸ› Bug report
Status

Fixed

Version

1.8

Component

User interface

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