Bug #94031
closedNo publishing possible since TYPO3 10.4.15
0%
Description
In workspaces module it is not possible to publish changes since TYPO3 10.4.15: All changes were listed in Workspaces module, but no staging action was possible (and the language selectbox was empty)
There is a patch in https://review.typo3.org/c/Packages/TYPO3.CMS/+/68779, but that did not work in my case. After appliying the patch, there were no changed datasets listed in Workspace module at all
=> I had to switch the file typo3/sysext/workspaces/Classes/Service/GridDataService.php o TYPO3 10.4.14 version, now it works again.
Files
Updated by Oliver Bartsch about 3 years ago
- Related to Bug #93915: Workspace "Uncaught (in promise) TypeError: a is null" when in workspace manager module added
Updated by Oliver Bartsch about 3 years ago
- Related to Bug #93645: Workspace pagination empty and Javascript error: Uncaught (in promise) TypeError: t is undefined added
Updated by Oliver Bartsch about 3 years ago
- Status changed from New to Needs Feedback
Hi, thanks again for reporting.
Im unfortunately not able to reproduce this. Could you therefore please share some more details about your environment and steps to reproduce?
When accessing the workspace module, a XHR request is preformed to the /workspace/dispatch
route. Would be great if you could share the response.
In case this is 500, there should be a stack trace which would be good to have, too.
Additionally please have a look at the browser console whether JavaScript errors are logged.
Updated by David Rellstab about 3 years ago
I can reproduce this partially. Both action (selection & staging) dropdowns are empty, there is an error in the console.
Publishing by clicking on single Items and publishing them through the dialogue works for me.
Here is the console output:
Uncaught (in promise) TypeError: Cannot read property 'Workspaces_CollectionChildren' of null
at Backend.renderWorkspaceInfos (Backend.js?bust=1620385124:formatted:654)
at Backend.js?bust=1620385124:formatted:616
See Attachment 1 for exact Code Line.
Seems to be introduced by https://github.com/TYPO3/TYPO3.CMS/commit/b0a57aaded
Contact me on Slack if more information are needed.
Updated by Marco Strotmeier about 3 years ago
Hi, sorry for my late reply. I can confirm a related issue to the one from David Rellstab. But for me it is however not possible to use any selection or staging action. Page and language selection are both empty and thus grayed out.
Calling
/typo3/index.php?route=%2Fajax%2Fworkspace%2Fdispatch&token=xxx
results in an 500 error.
Uncaught (in promise) s.AjaxResponse {response: Response}
Last error in stack, index.php?route=%2Fmodule%2Fweb%2FWorkspacesWorkspaces&token=xxx:
TypeError: Cannot read property 'requestContent' of undefined
Found an additional entry in the backend log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Undefined class constant 'SIGNAL_GenerateDataArray_BeforeCaching' | Error thrown in file PATH/typo3/sysext/workspaces/Classes/Compatibility/SlotReplacement.php in line 50. Requested URL: DOMAIN/typo3/index.php?route=%%2Fajax%%2Fworkspace%%2Fdispatch&token=--AnonymizedToken--
I hope this can help out to narrow it down.
Updated by Oliver Bartsch about 3 years ago
Hi David, this should be fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/68793. Can you please check?
Updated by Oliver Bartsch about 3 years ago
Hi Marco,
thanks for sharing more details. This looks like the XHR request fails due to some error in the corresponding PHP code.
Do you use any workspace related Hook / SignalSlot / Event which may trigger this error?
Found an additional entry in the backend log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Undefined class constant 'SIGNAL_GenerateDataArray_BeforeCaching' | Error thrown in file PATH/typo3/sysext/workspaces/Classes/Compatibility/SlotReplacement.php in line 50. Requested URL: DOMAIN/typo3/index.php?route=%%2Fajax%%2Fworkspace%%2Fdispatch&token=--AnonymizedToken--
This is really curious, since the constant is definitely defined in v10: https://github.com/TYPO3/TYPO3.CMS/blob/v10.4.15/typo3/sysext/workspaces/Classes/Service/GridDataService.php#L48
Updated by Oliver Bartsch over 2 years ago
- Status changed from Needs Feedback to Closed
I'll close this now, since there was no feedback since a couple of months. In case this issue is still present, please create a new issue with a reference to this one.