Issue Bug Closed

#93703Having an unused content element in Page module using the language mode and deflangbinding crashes the backend

Markus Klein 03/11/21, 10:16 updated 06/20/24, 19:35

Description

Setup

  • Activate mod.web_layout.defLangBinding = 1
  • Create a backend layout with some columns
  • Create another backend layout with columns with other colPos ids.
  • Create a page using one of the backend layouts
  • Create a translation of the page (e.g. Russian)
  • Create a content element in Russian (no default needed)
  • Change the backend layout of the page to the other layout

=> The created content element is now “unused” in terms of not being assigned to a valid colPos in this backend layout.

Problem

The page module throws a PHP error:

TYPO3\CMS\Backend\View\PageLayoutView line 858
@$this->checkIfTranslationsExistInLanguage($defaultLanguageElementsByColumn[$cKey], $languageId)@
where $defaultLanguageElementsByColumn[$cKey] is null.

Reviews 0

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