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.

Issue fork paragraphs-3408818

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Papa Ours created an issue. See original summary.

jffranck’s picture

StatusFileSize
new618 bytes

Here is a patch corresponding to the proposed resolution

abhishek_gupta1 made their first commit to this issue’s fork.

Berdir made their first commit to this issue’s fork.

berdir’s picture

Version: 8.x-1.16 » 8.x-1.x-dev
Status: Active » Fixed

That shouldn't happen, but shouldn't hurt to be more defensive about it.

Status: Fixed » Closed (fixed)

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