TYPO3 Exception 1303237468

Note

Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.

General TYPO3 troubleshooting tips can be found in the section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)

To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.

TYPO3 12.4.5 - 16.08.23

Error

Given select field item list was not found.

The Issue

This error happens when calling \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem() on an item that is not a valid select item or does not have an items array.

Solution

My select item did not have an items array, adding an empty items array fixed it:

EXT:my_sitepackage/Configuration/TCA/tx_my_sitepackage_table.php
'type' => [
    'label' => 'Typ',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'items' => [],
    ],
],