#95166Linkvalidator breaks if no pageUid
Description
The linkvalidator breaks if no pageUid is given. If in inline records (IRRE), these records could not be opened anymore.
Error:
Uncaught TYPO3 Exception: htmlspecialchars() expects parameter 1 to be string, null given | TypeError thrown in file […]typo3_src-10.4.14/typo3/sysext/linkvalidator/Classes/EventListener/CheckBrokenRteLinkEventListener.php in line 67.
Possible solution:
// Page does not exist
if (!is_array($pageRecord)) {
if ($hrefInformation['pageuid'])
$event->markAsBrokenLink('Page with ID ' . htmlspecialchars($hrefInformation['pageuid']) . ' not found');
else
$event->markAsBrokenLink('Page not found - missing ID');
}