Project

General

Profile

Actions

Bug #97147

closed

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

Added by Sabrina Hess over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2022-03-08
Due date:
% Done:

100%

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

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'] ?? ''),
Actions

Also available in: Atom PDF