Bug #97087
closedGifBuilder throws warnings with php 8
100%
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
Updated by André Buchmann over 2 years ago
- Subject changed from Fix GifBuilder php 8 Warnings to GifBuilder throws warnings with php 8
Updated by André Buchmann over 2 years ago
- Related to Bug #95613: Undefined array key warnings in GifBuilder added
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
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
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
Updated by Anonymous over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 73d8c13d57f30644b4aa0c7c8e27efd73dde43a2.
Updated by Simon Schaufelberger over 2 years ago
- Related to Bug #97211: GifBuilder throws warnings with php 8 added