Project

General

Profile

Actions

Bug #97087

closed

GifBuilder throws warnings with php 8

Added by André Buchmann over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2022-03-03
Due date:
% Done:

100%

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

Description

The following two warnings are thrown with php 8.1 in the GifBuilder:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "_GIFBUILDER." in /var/www/html/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php line 140

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "mask." in /var/www/html/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php line 215

How to test:

LocalConfiguration:
displayErrors = 1
exceptionalErrors = 12290

Typoscript Setup:

lib.test = IMAGE
lib.test {
  file = GIFBUILDER
  file {
    XY = 1024,768
    format = jpg
    quality = 88

    10 = IMAGE
    10.file = fileadmin/backimage.jpg

    15 = IMAGE
    15.offset = 420,18
    15.file = fileadmin/overlay.png
    15.mask = fileadmin/mask.png
  }
}

page = PAGE
page.10 < lib.test

page.config.contentObjectExceptionHandler = 0

You can download the files to test from the documentation:
https://docs.typo3.org/m/typo3/reference-typoscript/11.5/en-us/Gifbuilder/Examples.html


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #95613: Undefined array key warnings in GifBuilderClosed2021-10-12

Actions
Related to TYPO3 Core - Bug #97211: GifBuilder throws warnings with php 8Closed2022-03-19

Actions
Actions #1

Updated by André Buchmann over 2 years ago

  • Subject changed from Fix GifBuilder php 8 Warnings to GifBuilder throws warnings with php 8
Actions #2

Updated by André Buchmann over 2 years ago

  • Related to Bug #95613: Undefined array key warnings in GifBuilder added
Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73793

Actions #4

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73794

Actions #5

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73776

Actions #6

Updated by Anonymous over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Simon Schaufelberger over 2 years ago

  • Related to Bug #97211: GifBuilder throws warnings with php 8 added
Actions #8

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF