Project

General

Profile

Actions

Bug #100006

closed

Invalid Array Key in GraphicalFunctions

Added by Armin Vieweg over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Start date:
2023-02-21
Due date:
% Done:

100%

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

Description

When using GIFbuilder with text and breakWidth options set, the following PHP Warning appears:

PHP Warning: Undefined array key 5 in /var/www/html/web/public/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 1264

The issue appears in \TYPO3\CMS\Core\Imaging\GraphicalFunctions::getWordPairsForLineBreak when trying to access $wordsArray[$index + 1] which is not existing, in the last iteration:


Files

clipboard-202302211723-tfcoh.png (98.3 KB) clipboard-202302211723-tfcoh.png Armin Vieweg, 2023-02-21 16:22
Actions

Also available in: Atom PDF