Invalid field category Number for field type simple_percentage

Created on 25 March 2025, about 2 months ago

Problem/Motivation

The orriginal error is a WSOD (TypeError: Cannot access offset of type Drupal\Core\StringTranslation\TranslatableMarkup in isset or empty in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 45 of /var/www/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php). - just so someone finds the issue with more relevance) causes the UI to be unable to add new fields to a content type that has a simple percentage field.

Using the patch from this issue ( https://www.drupal.org/project/drupal/issues/3475505 πŸ› Changes in site building process can run into Cannot access offset of type StringTranslation\TranslatableMarkup on field creation path Active ) reveals the following error message:

Exception: Invalid field category Number for field type simple_percentage. in Drupal\field_ui\Form\FieldStorageAddForm->processFieldDefinitions() (line 135 of core/modules/field_ui/src/Form/FieldStorageAddForm.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

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

Comments & Activities

Production build 0.71.5 2024