Issue Bug Closed

#99975TYPO3\CMS\Frontend\Service\TypoLinkCodecService throws error on a-tag without href

Sven Ignor 02/17/23, 07:57 updated 03/14/23, 11:47

Description

“a” tags with missing href attributes (such as ‘bar‘ or bar) lead to:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Runtime Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/public/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php line 81

Since $typolink is ‘NULL’ at this point.

Reviews 2