Project

General

Profile

Actions

Bug #93094

closed

Cannot open TYPO3 Backend from frontend admin panel

Added by rene elsaesser almost 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2020-12-17
Due date:
% Done:

0%

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

Description

The user cannot open the backend using the frontend admin panel button "Open TYPO3 Backend".
This doesn't happen every time but very often.

JS Console Error:

Uncaught TypeError: parent.opener.top.fsMod is undefined
    editModuleOnClickHandler https://***.******.de/typo3/sysext/adminpanel/Resources/Public/JavaScript/Modules/Edit.js:5
    initializeEditModule https://***.*******.de/typo3/sysext/adminpanel/Resources/Public/JavaScript/Modules/Edit.js:20
    EventListener.handleEvent* https://***.*******.de/typo3/sysext/adminpanel/Resources/Public/JavaScript/Modules/Edit.js:24

Edit.js:

function editModuleOnClickHandler(event) {
    event.preventDefault();
    var element = event.target;
    if (parent.opener && parent.opener.top) {
        parent.opener.top.fsMod.recentIds['web'] = element.getAttribute('data-pageUid');
        if (parent.opener.top && parent.opener.top.nav_frame && parent.opener.top.nav_frame.refresh_nav) {
            parent.opener.top.nav_frame.refresh_nav();
        }
        parent.opener.top.goToModule(element.getAttribute('data-pageModule'));
        parent.opener.top.focus();
    } else {
        var vHWin = window.open(element.getAttribute('data-backendScript'), element.getAttribute('data-t3BeSitenameMd5'));
        vHWin.focus();
    }
    return false;
}

function initializeEditModule() {
    var editModuleBtnOpenBackend = document.querySelector('.typo3-adminPanel-btn-openBackend');
    editModuleBtnOpenBackend.addEventListener('click', editModuleOnClickHandler);
}

window.addEventListener('load', initializeEditModule, false);

Actions

Also available in: Atom PDF