Issue Bug Closed

#97147PHP Warning: Undefined array key "title" in EXT:linkvalidator/Classes/Linktype/InternalLinktype.php

Sabrina Hess 03/08/22, 16:10 updated 10/04/22, 14:14

Description

Title is not set when a linked content element exists but is not located on the linked page.

PHP Warning: Undefined array key "title" in sysext/linkvalidator/Classes/Linktype/InternalLinktype.php line 309

Steps to reproduce

  1. Create a text content element and link to an existing content element.
  2. Change the page of that link to a page on which this CE is not located or move the content element to a different page.
  3. Check links through Linkvalidator

Fix

https://github.com/TYPO3-CMS/linkvalidator/blob/9c298c048420b2e537b1ce2c188a5f8391fcdccd/Classes/Linktype/InternalLinktype.php#L309

- $errorParams['content']['title'],
+ (string)($errorParams['content']['title'] ?? ''),

Reviews 2