Project

General

Profile

Actions

Bug #100810

closed

Site settings as colPos in BackendLayouts lead to error

Added by David Mellen over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Category:
-
Start date:
2023-05-04
Due date:
% Done:

100%

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

Description

Hi,

since I updated to v12, using constants from site settings in Page TSConfig won't work anymore.

This is my page tsconfig:

mod {
  web_layout {
    BackendLayouts {
      default {
        title = default
        config {
          backend_layout {
            colCount = 1
            rowCount = 1
            rows {
              1 {
                columns {
                  1 {
                    name = main
                    colPos = {$backendLayouts.colPos.main}
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

and my site settings:

backendLayouts:
  colPos:
    main: 0

If I clear the cache and open a page in the backend it works, but once I reload without clearing the cache it won't work.

The backend just shows "main(No edit access)" for the column. If I use the language comparison view I'll get the following error:

#1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "{$backendLayouts.colPos.main}" in /var/www/html/vendor/typo3/cms-backend/Classes/ViewHelpers/LanguageColumnViewHelper.php line 34


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions #1

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Accepted
  • Assignee set to Christian Kuhn
  • Target version set to Candidate for patchlevel
  • Is Regression set to Yes
Actions #2

Updated by Christian Kuhn over 1 year ago

Actions #3

Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79496

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79496

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79496

Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79533

Actions #7

Updated by Christian Kuhn over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF