Project

General

Profile

Actions

Bug #98595

closed

BackendUtility::getProcessedValue PHP Runtime Deprecation Notice for flex fields with NULL pi_flexform value in PHP 8.1

Added by Leonie Philine about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-10-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

$value is nullable, as pi_flexform is defined as pi_flexform mediumtext, - and thus nullable - in EXT:frontend

The offending code section in TYPO3 11.5.17 at /public/typo3/sysext/backend/Classes/Utility/BackendUtility.php:1726:

            case 'flex':
                $l = strip_tags($value);
                break;

Solution: Coerce $value to string.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #97297: PHP 8.1 deprecation error in clipboard > infoClosedAndreas Kienast2022-04-04

Actions
Actions

Also available in: Atom PDF