#98959Undefined array key "NEW_1" when adding (drag n drop) a new page
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 4
- Bug #100828Undefined array key error when inserting a page after copying
- Task #103165Remove treelist cache completely from core
- Bug #103237Page Tree Filter does not find newly created versioned records
- Bug #107579PHP 8 Warning: Undefined array key "NEWxxx" in cms-frontend/Classes/Hooks/TreelistCacheUpdateHooks.php line 81
Files 1
History 9
-
Christian Wolfram commented <span data-processor="relativetime" data-value="2023-01-02T08:53:59+00:00" > 01/02/23, 08:53 </span>
-
Alex Kellner commented and changed attached Screenshot 2023-01-13 at 19-36-15 TYPO3 Exception · LOKAL LOKAL Blackpage statusinfo.live TYPO3 CMS 11.5.22.png <span data-processor="relativetime" data-value="2023-01-13T18:37:26+00:00" > 01/13/23, 18:37 </span>
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.
-
Christian Wolfram commented <span data-processor="relativetime" data-value="2023-03-28T15:05:43+00:00" > 03/28/23, 15:05 </span>
@wunschtacho 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.
-
Riccardo De Contardi commented and changed status
NewClosed <span data-processor="relativetime" data-value="2024-02-04T14:56:18+00:00" > 02/04/24, 14:56 </span>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.
-
Georg Ringer changed Related to #100828 <span data-processor="relativetime" data-value="2024-06-07T12:46:36+00:00" > 06/07/24, 12:46 </span>
-
Stephan Großberndt changed Related to #103237 <span data-processor="relativetime" data-value="2025-10-01T12:48:30+00:00" > 10/01/25, 12:48 </span>
-
Stephan Großberndt changed description <span data-processor="relativetime" data-value="2025-10-01T12:50:49+00:00" > 10/01/25, 12:50 </span>
-
Stephan Großberndt changed Related to #103165 <span data-processor="relativetime" data-value="2025-10-01T13:24:38+00:00" > 10/01/25, 13:24 </span>
-
Stephan Großberndt changed Related to #107579 <span data-processor="relativetime" data-value="2025-10-01T13:52:16+00:00" > 10/01/25, 13:52 </span>
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.