Bug #98959
closedUndefined array key "NEW_1" when adding (drag n drop) a new page
0%
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
Updated by Christian Wolfram almost 2 years ago
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.
Updated by Alex Kellner almost 2 years ago
- File Screenshot 2023-01-13 at 19-36-15 TYPO3 Exception · LOKAL LOKAL Blackpage statusinfo.live TYPO3 CMS 11.5.22.png Screenshot 2023-01-13 at 19-36-15 TYPO3 Exception · LOKAL LOKAL Blackpage statusinfo.live TYPO3 CMS 11.5.22.png added
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.
Updated by Christian Wolfram over 1 year ago
@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.
Updated by Riccardo De Contardi 10 months ago
- 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.
Updated by Georg Ringer 6 months ago
- Related to Bug #100828: Undefined array key error when inserting a page after copying added