Issue Bug Closed

#95698Non-existent language in PageLayoutView when user has language restrictions

Manfred Egger 10/19/21, 12:50 updated 01/12/23, 15:32

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.