Project

General

Profile

Actions

Bug #100006

closed

Invalid Array Key in GraphicalFunctions

Added by Armin Vieweg about 1 year ago. Updated about 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 #1

Updated by Armin Vieweg about 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.

Actions #2

Updated by Thomas Hohn about 1 year ago

Please add a separate issue for the other problem

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Thomas Hohn about 1 year ago

  • Category set to Image Generation / GIFBUILDER
  • Target version set to Candidate for patchlevel
Actions #5

Updated by Gerrit Code Review about 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

Actions #6

Updated by Thomas Hohn about 1 year ago

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

Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF