Issue Bug Resolved

#111039Workspaces module list fails for a deleted page with "Undefined array key"

Georg Tiefenbrunn 10/13/26, 08:56 updated 10/13/26, 17:45

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

  1. Anonymous commented and changed status Under Review Resolved done 0 % 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.