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 #1

Updated by Gerrit Code Review over 2 years 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/+/73897

Actions #2

Updated by Gerrit Code Review over 2 years ago

Patch set 2 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/+/73897

Actions #3

Updated by Gerrit Code Review over 2 years 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/+/73952

Actions #4

Updated by Oliver Bartsch over 2 years ago

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

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF