#106437DataHandler.php : Undefined array key "value"
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
-
Georg Ringer commented and changed status
NewNeeds Feedback 03/26/25, 13:40 -
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
-
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
-
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
-
Georg Ringer commented and changed status
Needs FeedbackRejected 03/31/25, 10:43thanks for feedback and glad that I could help
thanks for creating this issue!
can you provide the TCA configuration of this item? I guess the error is within the TCA