Project

General

Profile

Actions

Bug #106158

open

Missing $LANG variable in Collections using tt_content

Added by Danny Luda about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2025-02-12
Due date:
% Done:

0%

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

Description

Describe the bug
If a Content Blocks Collection is using tt_content as a foreign_field and for example a typo3 form is added in this. The $LANG variable is not available in this scope and we get an Exception:
PHP Warning: Undefined global variable $LANG in /html/typo3-composer/vendor/typo3/cms-form/Classes/Domain/Configuration/FlexformConfiguration/Processors/FinisherOptionGenerator.php line 96

To Reproduce
Steps to reproduce the behavior:

Create an Element that uses a Collection with foreign_table: tt_content
Insert a Typo3 Form element into it
Open frontend and get the error
Expected behavior
The Form element gets the $LANG variable in this scope.

TYPO3 Version
13.4.5

Content Blocks Version:
1.1.6

Related issue in Content Blocks: https://github.com/FriendsOfTYPO3/content-blocks/issues/343

YAML configuration:

name: pxproject/specialbox
group: pxproject_content_elements
prefixFields: false
basics:
    - TYPO3/Appearance
fields:
  - identifier: image
    type: File
    maxitems: 1
    minitems: 1
    allowed: common-image-types
  - identifier: content
    type: Collection
    minitems: 1
    required: 1
    foreign_table: tt_content

Files

Actions #1

Updated by Nikita Hovratov about 1 month ago

  • Description updated (diff)
Actions #2

Updated by Nikita Hovratov about 1 month ago

  • Description updated (diff)
Actions

Also available in: Atom PDF