Bug #25787
closedFirebug Error handler is undefined in Backend
100%
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);
}
Updated by Markus Klein almost 14 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?
Updated by Udo Leimberger almost 14 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.
Updated by Björn Pedersen almost 14 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'));
Updated by Oliver Hader over 13 years ago
- Target version changed from 4.5.3 to 4.5.4
Updated by Oliver Hader over 13 years ago
- Target version changed from 4.5.4 to 4.5.6
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634
Updated by Mr. Hudson over 13 years ago
Patch set 3 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634
Updated by Mr. Hudson over 13 years ago
Patch set 4 of change Ifb2db858d7075f4fd714d737576189c0e1efc5a5 has been pushed to the review server.
It is available at http://review.typo3.org/5634
Updated by Oliver Hader over 13 years ago
- Status changed from New to Under Review
- Assignee deleted (
Udo Leimberger) - Priority changed from Could have to Should have
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I15f3bab4c3c59c5c96633423ac7cd0ebd1736a1a has been pushed to the review server.
It is available at http://review.typo3.org/5694
Updated by Steffen Gebert over 13 years ago
I think that one is worth to go even into the next 4.4!
Updated by Simon Schaufelberger over 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 54afae5882862764d67ffd21cec6d33a835f75d8.
Updated by Riccardo De Contardi over 7 years ago
- Status changed from Resolved to Closed