Project

General

Profile

Actions

Bug #91913

closed

Backend Login Screen shows JS Error

Added by Susanne Moog over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2020-08-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The backend login shows a JS Error stemming from module menu event handling (before login)

jQuery.Deferred exception: e is null delegateTo@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Event/RegularEvent.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:13:236
initializeEvents@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:99:10
initialize/<@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:87:11
mightThrow@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3557:29
resolve/</process<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3625:12
setTimeout handler*resolve/<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3663:16
fire@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3291:31
add@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3350:7
then/<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3683:24
Deferred@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3774:9
then@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3668:20
initialize@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:86:9
u/<@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:18:85
mightThrow@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3557:29
resolve/</process<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3625:12
setTimeout handler*resolve/<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3663:16
fire@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3291:31
add@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3350:7
then/<@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3683:24
Deferred@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3774:9
then@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3668:20
jQuery.fn.ready@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3863:4
jQuery.fn.init@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:3024:10
jQuery@https://t3c-master.ddev.site/typo3/sysext/core/Resources/Public/JavaScript/Contrib//jquery/jquery.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:152:10
u@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:18:72
@https://t3c-master.ddev.site/typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js?bust=2ddd21569c34ff60060fb61f64c552214ca19d07:145:64
Actions #1

Updated by Riccardo De Contardi almost 4 years ago

  • Category set to Backend JavaScript
Actions #2

Updated by Martin Kutschker almost 4 years ago

That is because the login requires ImmediateActionElement which in turn requires ModuleMenu.

I don't know who needs the ImmediateActionElement. But is is explicitly listed with an inline JavaScript block in the HTML.

Anyway the problem is that the whole BE Javascript is loaded. Some parts of the code deal with the fact that the login is not the real thing others do not.

Loading the full JS for speedup is fine IMHO. But the self-initializing modules that expect certain HTML nodes are problematic. I'm not happy with that pattern.

Actions #3

Updated by Gerrit Code Review almost 4 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/+/67254

Actions #4

Updated by Gerrit Code Review almost 4 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/+/67254

Actions #5

Updated by Anonymous almost 4 years ago

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

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF