Project

General

Profile

Bug #95488

Updated by Sybille Peters about 3 years ago

h2. Versions 

 * TYPO3 10.4.21 

 h2. Reproduce 

 1. Enter a redirect with target with page link, formatted incorrectly: 


 <pre> 
 page=uid=p1004 
 </pre> 

 2. Load the page (= redirect source) in FE: exception 

 3. Filter by the source in the redirects module: exception 

 h2. Exception 

 <pre> 
 Wed, 06 Oct 2021 07:12:14 +0200 [CRITICAL] request="400a38d4d7411" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler":  
 Core: Exception handler (WEB): Uncaught TYPO3 Exception:  
 #1460581769: LinkHandler for page=uid=p1004 was not registered | TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException thrown in file 
 /var/www/mysite/releases/35/htdocs/typo3/sysext/core/Classes/LinkHandling/LinkService.php in line 117. 
 Requested URL: https://uol.de/****** -  
 {"TYPO3_MODE":"FE","exception":"TYPO3\\CMS\\Core\\LinkHandling\\Exception\\UnknownLinkHandlerException:  
 LinkHandler for page=uid=p1004 was not registered in  
 /var/www/mysite/releases/35/htdocs/typo3/sysext/core/Classes/LinkHandling/LinkService.php:117 
 </pre> 

 see file exception_issue_redirects.txt for full stack dump 

 h2. Fix problem 

 Problem can be fixed, by fixing the wrong target. However, this is difficult to do in the redirects module (because of the exception when filtering). (if you have many redirects). Can be fixed in DB directly: 

 <pre><code class="sql"> 
 UPDATE sys_redirect SET target='t3://page?uid=1004' WHERE target='t3://page=uid=p1004'; 
 </code></pre> 


 h2. Related 

 See exception entry: https://github.com/TYPO3-Documentation/TYPO3CMS-Exceptions/pull/37/files

Back