Project

General

Profile

Actions

Bug #91460

closed

Page tree not visible for backend group - Page tree error - Got unexpected response from the server.

Added by Andrreas Lehmann almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2020-05-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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

if ($this->useNavTitle && trim($page['nav_title'] ?? '') !== '') {

CHANGE TO

$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 = '';
     }

was working. In TYPO3 v10 not working anymore.


Files

01.png (46 KB) 01.png Andrreas Lehmann, 2020-05-22 15:27
Unbenannt.png (60 KB) Unbenannt.png Andrreas Lehmann, 2020-06-02 21:00
Actions #1

Updated by Andrreas Lehmann almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kienast almost 4 years ago

  • Status changed from New to Needs Feedback

Can you please check whether the request really uses PHP 7.2 or newer? Since a syntax error is reported, I assume some PHP version is used that is not capable of the null coalesce operator (which came in with PHP 7.0!). Your proposed workaround is suitable for PHP < 7.0.

Actions #3

Updated by Andrreas Lehmann almost 4 years ago

  • PHP Version changed from 7.2 to 7.3

I was taking a look in the backend. It is "PHP Version 7.3.10".

Actions #4

Updated by Andreas Kienast almost 4 years ago

I really wonder what's wrong here. Can you check if PHP 7.3 is also used for that very request that fails? I assume a pretty broked server setup here.

Actions #5

Updated by Andrreas Lehmann almost 4 years ago

How i can find that out? I am not into debugging.

Actions #6

Updated by Andrreas Lehmann almost 4 years ago

Was calling phpinfo() inside TreeController.php with

ob_start();
    phpinfo();
    $info = ob_get_contents();
    ob_end_clean();

    $fp = fopen("222.txt", "w+");
    fwrite($fp, $info);
    fclose($fp);

Result is, that PHP 7.3.10 is used.

Actions #7

Updated by Oliver Hader almost 4 years ago

  • Target version deleted (9.5.18 & 10.4.3)
Actions #8

Updated by Andrreas Lehmann almost 4 years ago

Hello TYPO3 Team,
what is the actual status here? Webserver problem or general problem?

Actions #9

Updated by Andrreas Lehmann almost 4 years ago

Problem is solved in TYPO3 10.4.4

Actions #10

Updated by Riccardo De Contardi almost 4 years ago

@Andrreas Lehmann thank you for the update. Do you think that this issue can be closed or is there still work to be done here?

Actions #11

Updated by Andrreas Lehmann almost 4 years ago

Close it please.

Actions #12

Updated by Riccardo De Contardi almost 4 years ago

  • Status changed from Needs Feedback to Closed

Closed in agreement with the reporter. If you think that this is the wrong decision, please reopen it or ping me.

Thank you!

Actions

Also available in: Atom PDF