Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated

Created on 14 December 2023, 11 months ago
Updated 28 January 2024, 10 months ago

Problem/Motivation

I have a php warning in the logs when displaying a node with paragraphs:
Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\paragraphs\Entity\Paragraph->getAllBehaviorSettings() (line 191 of /app/web/modules/contrib/paragraphs/src/Entity/Paragraph.php)

Steps to reproduce

When a Behavior is activated on a paragraph type and nothing has been contibuted for this Behavior.

Proposed resolution

Add a test in getAllBehaviorSettings method from the Paragraph Entity.

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance Papa Ours Paris

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