TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription() after updating to Drupal 10.2

Created on 17 December 2023, about 1 year ago
Updated 1 January 2024, 12 months ago

Problem/Motivation

I am unable to add a new field to any content type in Drupal 10.2 if bibleref module is enabled. The following error is thrown:

TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup, string returned in Drupal\Core\Field\FieldTypeCategory->getDescription() (line 26 of core/lib/Drupal/Core/Field/FieldTypeCategory.php).

Steps to reproduce

1. Fresh Drupal 10.2 site install
2. Enable the bibleref module.
3. Try to create a new field on any content type.
4. The error above is thrown.

Proposed resolution

I suppose the error is caused by the BibleReference.php but have insufficient knowledge to solve the problem.

I marked this as major as the development of the site is prohibited under Drupal 10.2 while this module is enabled.

๐Ÿ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ชIreland marksmith

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

Comments & Activities

Production build 0.71.5 2024