#111039Workspaces module list fails for a deleted page with "Undefined array key"
Description
When the workspaces module is opened for the id of a page that does not exist anymore, the module renders (see #110888), but loading the list fails with a PHP warning. The backend turns the warning into an exception and shows “Workspace action failed”.
The list stays empty.
Steps to reproduce
1. As a non-admin backend user, create a page in a workspace.
2. Delete the page. It is removed physically, because it has no live record.
3. Open the workspaces module with the id of the deleted page, or reload it.
Expected: the list loads, possibly empty.
Actual: popup “Workspace action failed” with PHP Warning: Undefined array key <uid> in typo3/sysext/workspaces/Classes/Service/WorkspaceService.php</uid>
Cause
WorkspaceService::getTreeUids() loads the pages of $newList into $pages with the
DeletedRestriction and appends the requested page id to $pageIds even if the page is gone.
The last loop reads $pages[$pageId]['t3ver_oid'] without checking that the entry exists.
Version: 14.3.8, PHP 8.5
Reviews 2
History 14
-
Gerrit Code Review pushed patch set 1 for main to change 96665 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-13T09:00:00+00:00" > 10/13/26, 09:00 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96665 <span data-processor="relativetime" data-value="2026-10-13T10:58:36+00:00" > 10/13/26, 10:58 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 96669 <span data-processor="relativetime" data-value="2026-10-13T17:41:21+00:00" > 10/13/26, 17:41 </span>
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-13T17:45:12+00:00" > 10/13/26, 17:45 </span>
Applied in changeset commit:4dd2355dbaeca756a74f6d6921ce5bb8dbdd072e.