Project

General

Profile

Actions

Bug #95698

closed

Non-existent language in PageLayoutView when user has language restrictions

Added by Manfred Egger over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-19
Due date:
% Done:

0%

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

Description

We created a backend user who only has access to specific languages, but not the default language (bc_users field allowed_languages). But if this user goes to module "Page", selects a page and selects "Languages" instead of "Columns" an error occurs:

Call to a member function getTitle() on null

in [...]/typo3_src-10.4.21/typo3/sysext/backend/Classes/View/PageLayoutView.php line 729

The problem seems to be, that PageLayoutView is only initialized with the available languages for the user, but the method generateLanguageView iterates over all page translations language ids. So it wants to access the properties of non existent languages from the backend users view.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #96283: Page module BE user rights "languages allowed" exception if default is not selectedClosed2021-12-08

Actions
Actions

Also available in: Atom PDF