PDA

View Full Version : Uncaught TypeError: Cannot call method 'substring' of undefined



santalib
19 Sep 2012, 12:15 AM
Hello, I'm developping web app with extjs and i need your help to debug my code, I'm working on this bug since 4 hours -___- :


console.trace() app.js:3(anonymous function) app.js:3
console.trace() /rayonnor/e-rayon/app/controller/Main.js?_dc=1348041757471:15
(anonymous function) /rayonnor/e-rayon/app/controller/Main.js?_dc=1348041757471:15
console.trace() /rayonnor/e-rayon/app/controller/Login.js?_dc=1348041757470:12
(anonymous function) /rayonnor/e-rayon/app/controller/Login.js?_dc=1348041757470:12
console.trace() /rayonnor/e-rayon/app/controller/main/Session.js?_dc=1348041757471:6
(anonymous function) /rayonnor/e-rayon/app/controller/main/Session.js?_dc=1348041757471:6
console.trace() /rayonnor/e-rayon/app/controller/main/commande.js?_dc=1348041757471:7
(anonymous function) /rayonnor/e-rayon/app/controller/main/commande.js?_dc=1348041757471:7
console.trace() /rayonnor/e-rayon/app/model/edit_commande.js?_dc=1348041757495:11
(anonymous function) /rayonnor/e-rayon/app/model/edit_commande.js?_dc=1348041757495:11
console.trace() /rayonnor/e-rayon/app/model/client.js?_dc=1348041757495:6
(anonymous function) /rayonnor/e-rayon/app/model/client.js?_dc=1348041757495:6
console.trace() /rayonnor/e-rayon/app/model/commande.js?_dc=1348041757493:2
(anonymous function) /rayonnor/e-rayon/app/model/commande.js?_dc=1348041757493:2
console.trace() /rayonnor/e-rayon/app/model/reunion.js?_dc=1348041757495:6
(anonymous function) /rayonnor/e-rayon/app/model/reunion.js?_dc=1348041757495:6
console.trace() /rayonnor/e-rayon/app/store/commande.js?_dc=1348041757496:2
(anonymous function) /rayonnor/e-rayon/app/store/commande.js?_dc=1348041757496:2
console.trace() /rayonnor/e-rayon/app/store/edit_commande.js?_dc=1348041757496:2
(anonymous function) /rayonnor/e-rayon/app/store/edit_commande.js?_dc=1348041757496:2
console.trace() /rayonnor/e-rayon/app/store/reunion.js?_dc=1348041757496:6
(anonymous function) /rayonnor/e-rayon/app/store/reunion.js?_dc=1348041757496:6
console.trace() /rayonnor/e-rayon/app/view/main/edit_commande/New.js?_dc=1348041757557:1
(anonymous function) /rayonnor/e-rayon/app/view/main/edit_commande/New.js?_dc=1348041757557:1
console.trace() /rayonnor/e-rayon/app/view/main/client/List.js?_dc=1348041757557:1
(anonymous function) /rayonnor/e-rayon/app/view/main/client/List.js?_dc=1348041757557:1
console.trace() /rayonnor/e-rayon/app/view/main/commande/List.js?_dc=1348041757556:3
(anonymous function) /rayonnor/e-rayon/app/view/main/commande/List.js?_dc=1348041757556:3
console.trace() /rayonnor/e-rayon/app/view/main/edit_commande/List.js?_dc=1348041757557:1
(anonymous function) /rayonnor/e-rayon/app/view/main/edit_commande/List.js?_dc=1348041757557:1
console.trace() /rayonnor/e-rayon/app/store/client.js?_dc=1348041757496:6
(anonymous function) /rayonnor/e-rayon/app/store/client.js?_dc=1348041757496:6
console.trace() /rayonnor/e-rayon/app/view/main/client/Details.js?_dc=1348041757557:2
(anonymous function) /rayonnor/e-rayon/app/view/main/client/Details.js?_dc=1348041757557:2
console.trace() /rayonnor/e-rayon/app/view/main/client/New.js?_dc=1348041757557:1
(anonymous function) /rayonnor/e-rayon/app/view/main/client/New.js?_dc=1348041757557:1
console.trace() /rayonnor/e-rayon/app/view/main/reunion/Details.js?_dc=1348041757558:1
(anonymous function) /rayonnor/e-rayon/app/view/main/reunion/Details.js?_dc=1348041757558:1
console.trace() /rayonnor/e-rayon/app/view/main/commande/New.js?_dc=1348041757557:1
(anonymous function) /rayonnor/e-rayon/app/view/main/commande/New.js?_dc=1348041757557:1
console.trace() article.js:7
(anonymous function) article.js:7
Ext.Loader.loadScriptFile ext-all-debug.js:4606
Ext.Loader.require ext-all-debug.js:4725
Ext.Loader.syncRequire ext-all-debug.js:4639
(anonymous function) ext-all-debug.js:1555
Ext.ClassManager.instantiate ext-all-debug.js:3941
(anonymous function) ext-all-debug.js:1555
Ext.define.initComponent NavigationRight.js:156
Ext.define.constructor ext-all-debug.js:15614
Base.callParent ext-all-debug.js:2891
Ext.define.constructor ext-all-debug.js:27103
Ext.Class.newClass ext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiate ext-all-debug.js:3948
(anonymous function) ext-all-debug.js:1555
Ext.define.initComponent /rayonnor/e-rayon/app/view/Main.js?_dc=1348041757495:13
Ext.define.constructor ext-all-debug.js:15614
Base.callParent ext-all-debug.js:2891
Ext.define.constructor ext-all-debug.js:27103
Ext.Class.newClass ext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiate ext-all-debug.js:3948
(anonymous function) ext-all-debug.js:1555
Ext.define.connectionb /rayonnor/e-rayon/app/controller/Login.js?_dc=1348041757470:83
fire ext-all-debug.js:10658
Ext.define.dispatch ext-all-debug.js:24045
Ext.override.fireEvent ext-all-debug.js:24020
Ext.define.fireHandler ext-all-debug.js:29510
Ext.define.onClick ext-all-debug.js:29502
(anonymous function)
wrap ext-all-debug.js:11088
console.trace() article.js:7
(anonymous function) article.js:7
Ext.Loader.loadScriptFile ext-all-debug.js:4606
Ext.Loader.require ext-all-debug.js:4725
(anonymous function) ext-all-debug.js:1555
data.onBeforeClassCreated ext-all-debug.js:44816
Ext.Class.process ext-all-debug.js:3246
Ext.Class.process ext-all-debug.js:3251
(anonymous function) ext-all-debug.js:4935
Ext.Loader.require ext-all-debug.js:4701
(anonymous function) ext-all-debug.js:4902
Ext.Class.process ext-all-debug.js:3250
Ext.Class.process ext-all-debug.js:3251
Ext.Class.Class ext-all-debug.js:3255
Ext.ClassManager.create ext-all-debug.js:3829
Ext.apply.define ext-all-debug.js:4181
(anonymous function) article.js:9
Ext.Loader.loadScriptFile ext-all-debug.js:4606
Ext.Loader.require ext-all-debug.js:4725
Ext.Loader.syncRequire ext-all-debug.js:4639
(anonymous function) ext-all-debug.js:1555
Ext.ClassManager.instantiate ext-all-debug.js:3941
(anonymous function) ext-all-debug.js:1555
Ext.define.initComponent NavigationRight.js:156
Ext.define.constructor ext-all-debug.js:15614
Base.callParent ext-all-debug.js:2891
Ext.define.constructor ext-all-debug.js:27103
Ext.Class.newClass ext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiate ext-all-debug.js:3948
(anonymous function) ext-all-debug.js:1555
Ext.define.initComponent /rayonnor/e-rayon/app/view/Main.js?_dc=1348041757495:13
Ext.define.constructor ext-all-debug.js:15614
Base.callParent ext-all-debug.js:2891
Ext.define.constructor ext-all-debug.js:27103
Ext.Class.newClass ext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiate ext-all-debug.js:3948
(anonymous function) ext-all-debug.js:1555
Ext.define.connectionb /rayonnor/e-rayon/app/controller/Login.js?_dc=1348041757470:83
fire ext-all-debug.js:10658
Ext.define.dispatch ext-all-debug.js:24045
Ext.override.fireEvent ext-all-debug.js:24020
Ext.define.fireHandler ext-all-debug.js:29510
Ext.define.onClick ext-all-debug.js:29502
(anonymous function)
wrap ext-all-debug.js:11088
console.trace() Footer.js:2
(anonymous function) Footer.js:2
Ext.Loader.loadScriptFile ext-all-debug.js:4606
Ext.Loader.require ext-all-debug.js:4725
Ext.Loader.syncRequire ext-all-debug.js:4639
(anonymous function) ext-all-debug.js:1555
Ext.ClassManager.instantiate ext-all-debug.js:3941
(anonymous function) ext-all-debug.js:1555
Ext.define.initComponent /rayonnor/e-rayon/app/view/Main.js?_dc=1348041757495:14
Ext.define.constructor ext-all-debug.js:15614
Base.callParent ext-all-debug.js:2891
Ext.define.constructor ext-all-debug.js:27103
Ext.Class.newClass ext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiate ext-all-debug.js:3948
(anonymous function) ext-all-debug.js:1555
Ext.define.connectionb /rayonnor/e-rayon/app/controller/Login.js?_dc=1348041757470:83
fire ext-all-debug.js:10658
Ext.define.dispatch ext-all-debug.js:24045
Ext.override.fireEvent ext-all-debug.js:24020
Ext.define.fireHandler ext-all-debug.js:29510
Ext.define.onClick ext-all-debug.js:29502
(anonymous function)
wrap

scottmartin
19 Sep 2012, 10:24 AM
You are most likely trying to create something by type and it cannot be found. Check for incorrect names defines or missing requires to load type.

If you use ext-all-dev.js (instead of ext-all-debug), it may provide warnings for your problem.

Scott.