Problem/Motivation

The error occurs on fields with multiple values:
Notice: Array to string conversion in Drupal\product_builder_preview\Plugin\BuilderVariables\EntityReferenceVariables->prepare() (line 25 of modules/contrib/product_builder/modules/product_builder_preview/src/Plugin/BuilderVariables/EntityReferenceVariables.php).

Warning: Illegal offset type in Drupal\product_builder_preview\Plugin\BuilderVariables\EntityReferenceVariables->prepare() (line 80 of modules/contrib/product_builder/modules/product_builder_preview/src/Plugin/BuilderVariables/EntityReferenceVariables.php).

Steps to reproduce

The error occurs on fields with multiple values.

CommentFileSizeAuthor
#2 3161746-1.patch1.16 KBusandul

Comments

USandul created an issue. See original summary.

usandul’s picture

StatusFileSize
new1.16 KB
alex liannoy’s picture

Hi @USandul,

Thank you for reporting this issue.
I have a feeling like this issue has been fixed in the latest dev release.

Best,
Alex

avpaderno’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.x-dev
Assigned: usandul » Unassigned
Status: Active » Needs review

  • Alex Liannoy committed 2ae1f6e on 8.x-1.x authored by USandul
    Issue #3161746 by USandul: Fix warnings. Notice: Array to string...
alex liannoy’s picture

Status: Needs review » Fixed

Thank you guys,
I've checked and applied the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.