Typed property must not be accessed before initialisation

Created on 11 December 2023, over 1 year 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 Vienna

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

Comments & Activities

Production build 0.71.5 2024