Viewfield causes error Cannot access offset of type Drupal\Core\StringTranslation\TranslatableMarkup

Created on 21 November 2024, 27 days ago

Problem/Motivation

Hello,
on a fresh Drupal 11.0.8 installation in Italian I get an error when I try to create a new field for a content type.

The error occurs only after installing viewfield 3.0.0-beta10

Uninstall viewfield solved the problem, but I need this module for my project.

Below is the error:

TypeError: Cannot access offset of type Drupal\Core\StringTranslation\TranslatableMarkup in isset or empty in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 45 of /home/drupaltest/website/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

More information:

Position: /admin/structure/types/manage/page/fields/add-field

Referrer: /admin/structure/types/manage/page/fields

Steps to reproduce

Install Drupal 11 then viewfield and activate it.

Go to the structure of any content type and click on Create a new field.

You will get the error above.

πŸ› Bug report
Status

Active

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024