Project

General

Profile

Bug #91460

Updated by Andrreas Lehmann almost 4 years ago

Reproduction: 

 * Installing normal TYPO3 10.4.3 (also dont works with 9.5.11) 
 * Logged in a „admin“ 
 * Created a new page „Test“ as 
 > * Root page CHECK 
 > * Page visible CHECK 
 * Creating a Backend usergroup with name „Reaktion“ and gave him under „Access Lists“ all rights 
 * Creating a Backend user „a.b“ and put him in the group „Redaktion“ 
 * Changed in access the Test page to the Group „Redaktion“ 
 * Logged in as user „a.b“ 
 * When calling the page, there is no Root „New TYPO3 site“ and no „Test“ page 

 Error: Page tree error - Got unexpected response from the server. 

 Log: 

 Fri, 22 May 2020 14:53:16 +0200 [CRITICAL] request="3ca52ab9ef87d" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB): Uncaught TYPO3 Exception: syntax error, unexpected 'if' (T_IF) | ParseError thrown in file /kunden/431424_13355/webseiten/subdomains/typo3_src-10.4.3/typo3/sysext/backend/Classes/Controller/Page/TreeController.php in line 301. Requested URL: http://qs.dega-akustik.de/typo3/index.php?route=%2Fajax%2Fpage%2Ftree%2FfetchConfiguration&token=--AnonymizedToken-- - {"TYPO3_MODE":"BE","exception":{}} 

 Error seems to be in /webseiten/subdomains/typo3_src-10.4.3/typo3/sysext/backend/Classes/Controller/Page/TreeController.php in line 269 

 Tryed in 9.5.11  
 <pre><code class="php"> 
 if ($this->useNavTitle && trim($page['nav_title'] ?? '') !== '') { 
 </code></pre> 

 CHANGE TO 

 <pre><code class="php"> 
 $navTitleTrim = isset($page['nav_title']) ? $page['nav_title'] : ''; 
	  if (is_null($navTitleTrim)) { 
	 	 $navTitleTrim = ''; 
	  } 
         if ($this->useNavTitle && trim($navTitleTrim) !== '') { 
             $nameSourceField = 'nav_title'; 
             $visibleText = $page['nav_title']; 
         } 
	  if (is_null($visibleText)) { 
	 	 $visibleText = ''; 
	  } 


 </code></pre> 
 
 

 was working. In TYPO3 v10 not working anymore.

Back