Issue Bug Resolved

#109719Prevent undefined "titleLen" key warnings in backend user settings usage

Himanshu Ramavat 04/27/26, 14:07 updated 10/08/26, 16:45

Description

When a backend user UC array does not contain titleLen , several backend code paths access
*$backendUser->uc[‘titleLen’]* directly, causing:

PHP Warning: Undefined array key “titleLen”

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "titleLen" in /var/www/html/vendor/typo3/cms-backend/Classes/View/BackendLayout/Grid/GridColumnItem.php line 140

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "titleLen" in /var/www/html/vendor/typo3/cms-backend/Classes/Utility/BackendUtility.php line 1572

Reproduction steps:

  1. Use/create BE user with missing titleLen in uc.
  2. Open backend page module (web/layout) and/or user settings flow.
  3. Observe warning/exception for undefined titleLen.

Expected : No warning/exception; safe fallback used.

Reviews 3

History 49

  1. Himanshu Ramavat commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-08T16:45:12+00:00" > 10/08/26, 16:45 </span>

    Applied in changeset commit:4142d8daacd906b97d519a4ea5cf55f8035ff442.