Problem/Motivation

Stringfilter Value is configured as array but should be String.

Steps to reproduce

Update an existing Site to php 8.1

Proposed resolution

Keep value = "StringValue" instead of value = [0 => 'Stringvalue', type = "String"]

Remaining tasks

Pagedesigner Elements should be stored in the correct format and not only be fixed in a workaround once retrieved during rendering.

User interface changes

-

API changes

-

Data model changes

Perhpas Pagedesigner Elements have to be fixed.

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

zuernBernhard created an issue. See original summary.

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

pvbergen’s picture

@zuernBernhard
Thanks for providing a workaround for making adaptable block php8.1 compatible. I've added an additional check on the type of the $item['value'] as without this it may break in cases, where $item['value'] already is a string.

In general, I agree that we need to cleanup values in the element's storage to fix these issues at the root. I will try to provide an update hook soon.

zuernbernhard’s picture

Thank you - I think we will deploy this today.

pvbergen’s picture

Status: Active » Fixed
pvbergen’s picture

Status: Fixed » Closed (fixed)