Issue Bug Closed

#98959Undefined array key "NEW_1" when adding (drag n drop) a new page

Alex Kellner 10/31/22, 10:07 updated 10/01/25, 12:50

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.

UndefinedArrayKeyInTreelistCacheUpdateHooks.png

Reviews 0

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

Files 1

History 9

  1. Christian Wolfram commented <span data-processor="relativetime" data-value="2023-01-02T08:53:59+00:00" > 01/02/23, 08:53 </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.

  2. 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.

  3. 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.

  4. Riccardo De Contardi commented and changed status New Closed <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.