Project

General

Profile

Actions

Bug #93915

closed

Workspace "Uncaught (in promise) TypeError: a is null" when in workspace manager module

Added by David Menzel almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-04-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
workspace, javascript, backend
Complexity:
Is Regression:
Sprint Focus:

Description

I tested this with TYPO3 10.4.15

When I'm in the workspace manager module I get occasionally the following error in the console. This happens when I have a new MASK CE which has a repeating field, as far as I can tell.

For that I created a new MASK CE which could have a repeating field. At first a did not create any repeating field inside this MASK CE and got no error in the workspace manager module. The I added a repeating field (a new card) and then I got the error:

Backend.js:13:20244

Uncaught (in promise) TypeError: a is null
renderWorkspaceInfos https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
loadWorkspaceComponents https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
loadWorkspaceComponents https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
Backend https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
jQuery 11
mightThrow
process
setTimeout handler*resolve/<
fire
add
then
Deferred
then
ready
init
jQuery
Backend https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
<anonymous> https://.../typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js?bust=1618330032:13
execCb https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
check https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
enable https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
bind https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
each https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
check https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
enable https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
bind https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
each https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
check https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
enable https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
bind https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
each https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5
emit https://.../typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js:5

Not sure if this is a TYPO3 error or MASK issues...


Files

teaser-card.JPG (11.9 KB) teaser-card.JPG David Menzel, 2021-04-13 17:10
Workspace-Mask-Error.jpg (108 KB) Workspace-Mask-Error.jpg David Menzel, 2021-04-13 17:11
cant-publish-to-live.JPG (184 KB) cant-publish-to-live.JPG David Menzel, 2021-04-14 07:54

Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Bug #93645: Workspace pagination empty and Javascript error: Uncaught (in promise) TypeError: t is undefinedClosed2021-03-04

Actions
Related to TYPO3 Core - Bug #94031: No publishing possible since TYPO3 10.4.15Closed2021-04-30

Actions
Related to TYPO3 Core - Bug #98129: Workspace pagination is brokenNew2022-08-12

Actions
Has duplicate TYPO3 Core - Bug #93932: Changing stages no longer possible under certain circumstancesClosed2021-04-15

Actions
Actions #1

Updated by David Menzel almost 3 years ago

In this example a new page was created and had a mask ce with repeating fields. You can see the new ce in the workspace module but it's not possible to publish the content to the LIVE workspace because the option "Publish to Live" is not available.

Note: We use a workflow with multiple custom steps in between but we haven't changed this since TYPO3 8, so I don't think it's related to the custom steps. "Publish to Live" should still be available imo.

Actions #2

Updated by David Menzel almost 3 years ago

  • Related to Bug #93645: Workspace pagination empty and Javascript error: Uncaught (in promise) TypeError: t is undefined added
Actions #3

Updated by Nikita Hovratov almost 3 years ago

Can confirm this happens since version 10.4.15. In 10.4.14 it works.

Actions #5

Updated by Nikita Hovratov almost 3 years ago

Happens with all records, which have inline fields like text-media element with images

Actions #6

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68779

Actions #7

Updated by Oliver Bartsch almost 3 years ago

  • Has duplicate Bug #93932: Changing stages no longer possible under certain circumstances added
Actions #8

Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68779

Actions #9

Updated by Oliver Bartsch almost 3 years ago

I can only reproduce the JavaScript error in case the items in the module are not paginated. So, the amount of parent records is less than the defined limit per page (default 30).

Can someone confirm this?

Actions #10

Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68779

Actions #11

Updated by Gerrit Code Review almost 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68779

Actions #12

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68793

Actions #13

Updated by Nikita Hovratov almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Oliver Bartsch almost 3 years ago

  • Related to Bug #94031: No publishing possible since TYPO3 10.4.15 added
Actions #15

Updated by Benni Mack almost 3 years ago

  • Status changed from Resolved to Closed
Actions #16

Updated by Francois Suter over 1 year ago

  • Related to Bug #98129: Workspace pagination is broken added
Actions

Also available in: Atom PDF