Project

General

Profile

Bug #88304

Updated by Markus Klein almost 5 years ago

After Upgrading to TYPO3 v9.5.6 i get the php Warning: 

 <pre> 
 (1/1) #1476107295 TYPO3\CMS\Core\Error\Exception 
 PHP Warning: strpos(): Empty needle in /vagrant/htdocs/typo3/sysext/core/Classes/Routing/PageRouter.php line 126 
 </pre> 

 It only occurs on Subpages (obviously) where the PageRouter is used. 

 The normalizedParams (scriptName) ist an empty string. 

 Im using nginx with php-fpm (7.3). 

 Debug of some of my @$_SERVER@ $_SERVER values. 
 
 * @$_SERVER['ORIG_PATH_INFO']@ 
 - `$_SERVER['ORIG_PATH_INFO']` => not set 
 * @$_SERVER['PATH_INFO']@ - `$_SERVER['PATH_INFO']` => empty string 
 * @$_SERVER['ORIG_SCRIPT_NAME']@ - `$_SERVER['ORIG_SCRIPT_NAME']` => not set 
 * @$_SERVER['SCRIPT_NAME']@ - `$_SERVER['SCRIPT_NAME']` => '/index.php' ‘/index.php’ (10 chars) 

 To avoid the error: 
 1. Set TYPO4 to Live Mode in Install Tools Configuration Presets 
 or 
 2. Replace the if condition in line 136 with: 
 @if if (!empty($scriptName) && strpos($urlPath, $scriptName) !== false) {@ {

Back