#111290Publishing from the workspace preview fails with "Not implemented"
Description
Problem
Sending a page to the stage “Publish” (-20) from the frontend workspace preview does not publish anything. The AJAX call answers with status 500 and the error {"method":"publishPageCollectionExecute","error":{"message":"Not implemented","code":1762777405}}.
Steps to reproduce
- Switch to a workspace with a stage configuration that ends in “Publish” and change a page in it
- Open the workspace preview of the page (View button)
- Send the page to the next stages until the button leads to “Publish” and confirm the dialog
- The page is not published, the AJAX request to /typo3/ajax/workspace/preview fails with “Not implemented” (1762777405)
Cause
Since #108649 (commit 62c70bc7bb2, “[FEATURE] Add “publish” command to DataHandler”) Build/Sources/TypeScript/workspaces/preview.ts sends the method publishPageCollectionExecute for the target stage -20. The preview calls the AJAX route workspace_preview, i.e. WorkspacesAjaxController::preview(), but the method is only registered in WorkspacesAjaxController::dispatch() (route workspace_dispatch of the Workspaces module). preview() therefore ends in its default branch.
Suggested fix
--- a/typo3/sysext/workspaces/Classes/Controller/WorkspacesAjaxController.php
+++ b/typo3/sysext/workspaces/Classes/Controller/WorkspacesAjaxController.php
@@ public function preview(ServerRequestInterface $request): ResponseInterface
'publishPageDirectly' => $this->publishPageDirectly((int)$call->data[0]),
+ 'publishPageCollectionExecute' => $this->publishPageCollectionExecute($call->data[0]),
'updateStageChangeButtons' => $this->updateStageChangeButtons((int)$call->data[0], $request),Reviews 1
History 13
-
Gerrit Code Review pushed patch set 1 for main to change 97226 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-30T09:11:00+00:00" > 10/30/26, 09:11 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97226 <span data-processor="relativetime" data-value="2026-10-30T12:48:43+00:00" > 10/30/26, 12:48 </span>
-
Matthias Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-02T16:20:13+00:00" > 11/02/26, 16:20 </span>
Applied in changeset commit:d311fdce1504f6a00ccb7f630d92e35bf3c56648.