Warning when adding a view (bp_view) paragraph type

Created on 31 March 2023, over 1 year ago
Updated 1 April 2023, over 1 year ago

Problem/Motivation

After adding a view (bp_view) and declaring its display (block) to the new paragraph field using Bootstrap Paragraphs module, upon saving the node, the following two WARNINGS is displayed:

  • Warning: Undefined array key "data" in Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem->setValue() (line 97 of modules/contrib/viewsreference/src/Plugin/Field/FieldType/ViewsReferenceItem.php).

  • Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem->setValue() (line 97 of modules/contrib/viewsreference/src/Plugin/Field/FieldType/ViewsReferenceItem.php).

Steps to reproduce

  • Fresh Drupal 10.0.5 site
  • PHP version 8.1.13
  • Dev version of Bootstrap Paragraphs module
  • 8.x-3.27 version of Bootstrap base theme
  • Content type with a single multi-valued Paragraphs field
  • Node with one custom paragraph type (3fields: description, image & title) and one "view" paragraph type (bp_view)

Regardless of Warnings, the created node seems to be working on my site. Just want to know how to fix this bug.

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Amirez Houston, TX

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

Comments & Activities

  • Issue created by @Amirez
  • πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

    @Amirez - Based on the error message, this is a bug with the Views Reference module (which is a dependency of Bootstrap Paragraphs).

    So, your first two steps would be to:

    1. Change the "Project" in the "Issue metadata" above to "Views Reference".
    2. Search the Views Reference issue queue to see if this has already been reported, if it has, then mark this issue as a duplicate and use the other issue as the place to work on the task.

    Let me know.

    -mike

  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Amirez Houston, TX

    @ultimike - I've changed the project to "view reference field". I searched the issue queue and found the exact same issue πŸ› Warning: Undefined array key "data" Closed: outdated being reported.

    I'm going to apply and test the latest patch to see if that works, I will keep you updated.

    -Reza

Production build 0.71.5 2024