Bug #100006
closedInvalid Array Key in GraphicalFunctions
100%
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
Updated by Armin Vieweg over 1 year ago
I should also mention that the function, to break text, seems to be broken.
In 10.4 with PHP 7.4 this worked before.
Now, long texts are floating right out of the image.
Updated by Thomas Hohn over 1 year ago
Please add a separate issue for the other problem
Updated by Gerrit Code Review over 1 year 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/+/77924
Updated by Thomas Hohn over 1 year ago
- Category set to Image Generation / GIFBUILDER
- Target version set to Candidate for patchlevel
Updated by Gerrit Code Review over 1 year 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/+/77955
Updated by Thomas Hohn over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c87733b1c0e85ce2ce53cbb2016a0e046be5af2d.