Project

General

Profile

Actions

Bug #25787

closed

Firebug Error handler is undefined in Backend

Added by Udo Leimberger about 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2011-04-06
Due date:
% Done:

100%

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

Description

Using the backend while Firebug is active, the console shows error:

Handler is undefined in line 3966 in prototype.js

Quick fix:
Change line 3966 in typo3/contrib/prototype/prototype.js
From:
handler.call(element, event);

To:
if (handler) {
handler.call(element, event);
}


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #27838: Auto logoff caused by JS-Error: handler is undefinedClosed2011-07-05

Actions
Related to TYPO3 Core - Bug #30760: handler is undefined when resizing the backendClosedOliver Hader2011-10-11

Actions
Related to TYPO3 Core - Bug #24929: TYPO3.configuration is undefinedClosed2011-02-02

Actions
Actions #1

Updated by Markus Klein about 13 years ago

Udo Leimberger wrote:

Using the backend while Firebug is active, the console shows error:

Handler is undefined in line 3966 in prototype.js

Quick fix:
Change line 3966 in typo3/contrib/prototype/prototype.js
From:
handler.call(element, event);

To:
if (handler) {
handler.call(element, event);
}

I can confirm this issue, but I'm not sure, whether it's a good idea to modify third party libraries.
Could you figure out, why the handler is undefined?

Actions #2

Updated by Udo Leimberger about 13 years ago

The core problem is the prototype Event.observe(element,'resize' call.
So, if you resize the browser or i.e. resize firebug-window you will get this handler is undefined error.

I think there must be an (old) call like this:
Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('backend-search-menu'));

where backend-search-menu is the id of the controll which doesn't exist in the html code or was not created till the call fired.

if I have a litte time, I try to locate the problem.

Actions #3

Updated by Björn Pedersen about 13 years ago

This observe resize is used at the following places:

./typo3/js/backendsearch.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('backend-search-menu'));
./typo3/js/clearcachemenu.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('clear-cache-actions-menu'));
./typo3/js/shortcutmenu.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('shortcut-menu'));
./typo3/js/workspacemenu.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('workspace-selector-menu'));
./typo3/sysext/opendocs/opendocs.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('tx-opendocs-menu'));
./typo3/sysext/sys_action/toolbarmenu/tx_sysactions.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('tx-sys-action-menu'));
./typo3/sysext/workspaces/Resources/Public/JavaScript/workspacemenu.js: Event.observe(window, 'resize', TYPO3BackendToolbarManager.positionMenu('workspace-selector-menu'));

Actions #4

Updated by Oliver Hader almost 13 years ago

  • Target version changed from 4.5.3 to 4.5.4
Actions #5

Updated by Oliver Hader over 12 years ago

  • Target version changed from 4.5.4 to 4.5.6
Actions #6

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634

Actions #7

Updated by Mr. Hudson over 12 years ago

Patch set 2 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634

Actions #8

Updated by Mr. Hudson over 12 years ago

Patch set 3 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634

Actions #9

Updated by Mr. Hudson over 12 years ago

Patch set 4 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634

Actions #10

Updated by Oliver Hader over 12 years ago

  • Status changed from New to Under Review
  • Assignee deleted (Udo Leimberger)
  • Priority changed from Could have to Should have
Actions #11

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change I15f3bab4c3c59c5c96633423ac7cd0ebd1736a1a has been pushed to the review server.
It is available at http://review.typo3.org/5694

Actions #12

Updated by Steffen Gebert over 12 years ago

I think that one is worth to go even into the next 4.4!

Actions #13

Updated by Simon Schaufelberger over 12 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF