Bug #28594
closedThe requested URL typo3/undefined was not found on this server
100%
Description
After speedup backend with card layout. It work once, so something must have broken it later :(
Uncaught exception: TypeError: Cannot convert 'url' to object
Error thrown at line 247, column 6 in <anonymous function: loadModuleComponents>(record, params) in http://localhost/t3-playground/dummy/typo3/js/modulemenu.js?1312033558:
Ext.getCmp('typo3-card-'+record.name).setUrl(url + (params ? (url.indexOf('?') !== -1 ? '&' : '?') + params : ''));
called from line 207, column 3 in <anonymous function: showModule>(mod, params) in http://localhost/t3-playground/dummy/typo3/js/modulemenu.js?1312033558:
this.loadModuleComponents(record, params);
called from line 130, column 6 in <anonymous function: click>(view, index, node, event) in http://localhost/t3-playground/dummy/typo3/js/modulemenu.js?1312033558:
TYPO3.ModuleMenu.App.showModule(el.getAttribute('id'));
called via Function.prototype.apply() from line 307, column 12 in <anonymous function: fire>() in http://localhost/t3-playground/dummy/typo3/contrib/extjs/ext-all-debug.js:
var args = Array.prototype.slice.call(arguments, 0);
called from line 54, column 16 in <anonymous function: fireEvent>() in http://localhost/t3-playground/dummy/typo3/contrib/extjs/ext-all-debug.js:
ret = ce.fire.apply(ce, a);
called via Function.prototype.apply() from line 29841, column 16 in <anonymous function: onClick>(e) in http://localhost/t3-playground/dummy/typo3/contrib/extjs/ext-all-debug.js:
this.fireEvent("click", this, index, item, e);
called from line 5197, column 12 in h(e) in http://localhost/t3-playground/dummy/typo3/contrib/extjs/ext-all-debug.js:
fn.call(scope || el, e, t, o);
Updated by Philipp Gampe over 13 years ago
This happend it you click the module item twice.
What should actually happen is, that it force reloads the content frame.
Updated by Kay Strobach over 13 years ago
which module throws the error? - which browser do you use?
can't reproduce this in chrome - but in firefox ... will take a look
Update chrome displays error 404 sometimes ...
Updated by Kay Strobach over 13 years ago
hello philipp,
there 2 possible solutions:
solution 1:
move
line 249: url = record.originalLink;
before line 245.
would force reload every time, when the module root is not opened
solution 2:
if (Ext.getCmp('typo3-contentContainerWrapper').layout.activeItem.id == 'typo3-card-' + record.name) { Ext.getCmp('typo3-card-'+record.name).setUrl(url + (params ? (url.indexOf('?') !== -1 ? '&' : '?') + params : '')); } else { url = record.originalLink; Ext.getCmp('typo3-card-'+record.name).setUrlIfChanged(url + (params ? (url.indexOf('?') !== -1 ? '&' : '?') + params : '')); }
change to:
if (Ext.getCmp('typo3-contentContainerWrapper').layout.activeItem.id != 'typo3-card-' + record.name) { url = record.originalLink; Ext.getCmp('typo3-card-'+record.name).setUrlIfChanged(url + (params ? (url.indexOf('?') !== -1 ? '&' : '?') + params : '')); }
This way the reload is just triggered by onclick, when the module is already open.
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I1692040e38645d68002ae494e9261fd0ccb4d42d has been pushed to the review server.
It is available at http://review.typo3.org/3909
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change I1692040e38645d68002ae494e9261fd0ccb4d42d has been pushed to the review server.
It is available at http://review.typo3.org/3909
Updated by Chris topher over 13 years ago
Kay Strobach wrote:
which module throws the error? - which browser do you use?
I can reproduce in FF5 on WIndows XP. The error occurs in the BE Log module (haven't tested others).
Updated by Chris topher over 13 years ago
- Status changed from New to Under Review
Updated by Kay Strobach over 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 36c833022064aa22fcb04d84c436f43970175cf8.