Issue Bug Rejected

#106437DataHandler.php : Undefined array key "value"

Daniela Schmidt 03/26/25, 11:57 updated 03/31/25, 10:43

Description

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key “value” in /var/www/html/vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php line 8606

Debug Mode: Debug

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 5

  1. Georg Ringer commented and changed status New Needs Feedback 03/26/25, 13:40

    thanks for creating this issue!

    can you provide the TCA configuration of this item? I guess the error is within the TCA

  2. Daniela Schmidt commented and changed attached Bildschirmfoto 2025-03-26 um 14.47.08.png 03/26/25, 13:55

    Hi Georg,
    thanks for your quick feedback!

    I have tested again and removed all TCA configurations.
    When creating core elements such as ‘Header Only’, the above-mentioned error message appears when translating.
    The following if-query within the code in the DataHandler.php file in line 8606 works for me:

            foreach (($configuration['items'] ?? []) as $item) {
                if ($item['value'] ?? '' === $value) {
                    return $value;
                }
            }

    Greetings

  3. Georg Ringer commented 03/26/25, 20:54

    can you do such code:

    if (!isset($item['value'])) {
    print_r($configuration);die;
    }

    this will help to find the tca field which is broken

    IMHO there is no select in the core which is broken, so I suggest something different

  4. Daniela Schmidt commented 03/31/25, 09:28

    Thank you very much, that helped!

    You were absolutely right, a separate TCA override for a content element to read icons from a folder failed here.
    This is also the reason why testing it in another project led to the same result, as it was also in use there.

    With the correction, no further query is required in Datahandler.php and the issue can be closed.

    Thanks

  5. Georg Ringer commented and changed status Needs Feedback Rejected 03/31/25, 10:43

    thanks for feedback and glad that I could help