Bug #98959
closed
Undefined array key "NEW_1" when adding (drag n drop) a new page
Added by Alex Kellner about 2 years ago.
Updated 10 months ago.
Description
TYPO3 11.5.17, PHP 8.1.11
When adding a new page in the page tree as an admin, the page cannot be added. The error in the browser console is:
PHP Warning: Undefined array key "NEW_1" in /app/app/private/typo3/sysext/frontend/Classes/Hooks/TreelistCacheUpdateHooks.php line 81
This information sound a bit less to me, but I'm not sure what information is still missing here. Ping me, if I should provide more.
Files
Same issue with TYPO3 11.5.21, PHP 8.1.2
This problem also occurs with existing pages that are to be translated into another language.
Different project, same problem with TYPO3 11.5.22
I debugged and checked log and stumbled over the message:
Field pages.anyfield doesn't have a default value
Because anyfield was added from me, I just added a default value in TCA and the error is gone.
@Alex Kellner thx for the hint with "field doesn't have a default value". In my case I have a field of type "group" with select of table "tt_address", without a configured default value in TCA. If I add "default => ''", the issue is fixed.
From my point of view the problem is solved and the ticket can be closed.
- Status changed from New to Closed
I close this issue in agreement with the reporter.
If you think that this is the wrong decision or experience the issue again please reopen it or open a new issue with a reference to this one.
Thank you.
- Related to Bug #100828: Undefined array key error when inserting a page after copying added
Also available in: Atom
PDF