Typed property must not be accessed before initialisation

Created on 11 December 2023, 7 months ago

Problem/Motivation

When adding a paragraph with a viewsreference field, I get the error Error: Typed property Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem::$display_id must not be accessed before initialization in Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem->isEmpty()

Steps to reproduce

Create a paragraph type with a viewsreference field
Add the paragraph to a node

Proposed resolution

Set empty string as default value of property

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria arthur_lorenz Berlin

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

Comments & Activities

Production build 0.69.0 2024