Project

General

Profile

Actions

Bug #96116

closed

imgResource Mask error

Added by Roman Büchler almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2021-11-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using mask properties on the imgResource function results in an error message.

TS:

lib.imageTest = IMAGE
lib.imageTest {
    file = fileadmin/pizpalue.jpg
    file {
        width = 2000c
        height = 300c-60
        m {
            bgImg = fileadmin/pizpalue-overlay-bg.jpg
            mask = fileadmin/pizpalue-overlay-mask.jpg
        }
    }
}

Fluid template:

<f:cObject typoscriptObjectPath="lib.imageTest"></f:cObject>

or alternative with TypoScript page.20 < lib.imageTest

Error message:

Exception: Serialization of 'Closure' is not allowed

in /var/www/html/.build/public/typo3/sysext/core/Classes/Resource/ProcessedFileRepository.php line 243

                ),
                $queryBuilder->expr()->eq('task_type', $queryBuilder->createNamedParameter($taskType, \PDO::PARAM_STR)),
                $queryBuilder->expr()->eq(
                    'configurationsha1',
                    $queryBuilder->createNamedParameter(sha1(serialize($configuration)), \PDO::PARAM_STR)
                )
            )
            ->execute()
            ->fetchAssociative();

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #99138: Avoid undefined array key access in ContentObjectRendererClosed2022-11-19

Actions
Related to TYPO3 Core - Bug #87685: Multiple entries in sys_file_processedfile caused by null entries in configurationNew2019-02-11

Actions
Actions

Also available in: Atom PDF