TYPO3 Exception 1439288036

An item in field "..." of table "..." is not an array as expected

This happens in TYPO3 7.6 if there is a incompatible 'items' TCA definition in the according field like

'items' => [
    '0' => '-'
]
Copied!

or

'items' => ['-']
Copied!

This has to be replaced with a correct item definition like

'items' => [
    ['-', 0]
]
Copied!

https://docs.typo3.org/typo3cms/TCAReference/7.6/Reference/Columns/Select/Index.html#items

Same error on TYPO3 12.4:

I got this error in TYPO3 12.4 when changing the TCA items (l10n_parent field) from old format to new one forgetting the outer brackets []

wrong:

'items' => [
    'label' => '-',
     'value' => 0,
],
Copied!

right:

'items' => [
    [
        'label' => '',
        'value' => 0,
    ],
],
Copied!