Problem/Motivation

Admin user cannot add custom fields to any entity because field type error:

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

- Enable the module on a drupal 10 Multilanguage.
- Go to any content type and try to add a new field.
- White screen with the translatable markup error will appear.

Proposed resolution

The error is caused because a missing description on the fieldtype.

- Add a default translatable description to the ConstantContactListItem docblock annotation.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jabonillac@gmail.com created an issue. See original summary.

jabonillac@gmail.com’s picture

StatusFileSize
new607 bytes

Added the patch with a default description.

rosemaryreilman’s picture

Assigned: jabonillac@gmail.com » rosemaryreilman
Status: Active » Needs review

Thank you for submitting the bug report and patch. I'll be reviewing as soon as I can.

  • rosemaryreilman committed 32373a7f on 3.x
    Issue #3427221 by jabonillac@gmail.com: Error creating custom fields on...
rosemaryreilman’s picture

Status: Needs review » Patch (to be ported)

Patch applied and merged to dev branch.

rosemaryreilman’s picture

Status: Patch (to be ported) » Fixed

Creating 3.1.9 release shortly

rosemaryreilman’s picture

Status: Fixed » Closed (fixed)