Project

General

Profile

Actions

Bug #79166

closed

Wrong parameter type in LinkAnalyzer causes exception

Added by Christer V almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Linkvalidator
Target version:
-
Start date:
2017-01-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

How to replicated: Run Linkvalidator somewhere that already has broken link. When trying to delete the previous broken links you get a exception.

To fix:

In TYPO3\CMS\Linkvalidator\LinkAnalyzer::getLinkStatistics

$queryBuilder->expr()->in(
    'link_type',
    $queryBuilder->createNamedParameter($checkKeys, Connection::PARAM_INT_ARRAY)
)

Should be changed to
$queryBuilder->expr()->in(
    'link_type',
    $queryBuilder->createNamedParameter($checkKeys, Connection::PARAM_STR_ARRAY)
)

Tested in T3 8.5.1. PHP 7. MySQL 5.7

Actions

Also available in: Atom PDF