Project

General

Profile

Actions

Bug #103012

closed

regiserPlugin breaks tca select item group

Added by Natalia Postnikova 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-02-01
Due date:
% Done:

0%

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

Description

Since the update from TYPO3 12.4.9 to 12.4.10. the function addTcaSelectItemGroup does not register the select item group correcty. When a plugin is registered, it overrides the configured tca select item group and provokes a PHP warning Core: Error handler (BE): PHP Warning: Array to string conversion in /var/www/html/vendor/typo3/cms-core/Classes/Localization/LanguageService.php line 178.

To reproduce - add TCA Select Item Group:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
    'tt_content',
    'list_type',
    'dummy',
    'Dummy'
);

=> Group is added to TCA configuration correctly

Register a plugin in that group:

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'Dummy',
    'Dummy',
    'Dummy',
    '',
    'dummy'
);

=> Group is overwritten by an array, therefore the label is not displayed

The attachment is a small dummy extension which demonstrates the problem and the screenshot shows the active TCA configuration with the label missing. The dropdown-field itself shows 'Array' as label or throws an exception (based on error handling configuration).


Files

dummy.zip (1.85 KB) dummy.zip Natalia Postnikova, 2024-02-01 10:09
groupitem.png (22.6 KB) groupitem.png Natalia Postnikova, 2024-02-01 10:15

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #102842: PHP Warning: Array to string conversion when group id does not exist for pluginClosed2024-01-15

Actions
Is duplicate of TYPO3 Core - Bug #102842: PHP Warning: Array to string conversion when group id does not exist for pluginClosed2024-01-15

Actions
Actions #1

Updated by Oliver Bartsch 10 months ago

  • Status changed from New to Closed

Hi, thanks for reporting. This bug has already been fixed with #102841 and will be released with the next maintenance release, scheduled for February 13, 2024.

Best, Oli

Actions #2

Updated by Oliver Bartsch 10 months ago

  • Is duplicate of Bug #102841: Array to string conversion for list_type itemGroups "header" added
Actions #3

Updated by Oliver Bartsch 10 months ago

  • Related to Bug #102842: PHP Warning: Array to string conversion when group id does not exist for plugin added
Actions #4

Updated by Oliver Bartsch 10 months ago

  • Is duplicate of deleted (Bug #102841: Array to string conversion for list_type itemGroups "header")
Actions #5

Updated by Oliver Bartsch 10 months ago

  • Is duplicate of Bug #102842: PHP Warning: Array to string conversion when group id does not exist for plugin added
Actions

Also available in: Atom PDF