Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    81
    Vote Rating
    1
    Nom4d3 is on a distinguished road

      0  

    Default [CLOSED][B3] Uncaught TypeError: Cannot read property 'isReader' of undefined

    [CLOSED][B3] Uncaught TypeError: Cannot read property 'isReader' of undefined


    New bug on beta3. I don't have this issue on beta2.

    Code:
    Uncaught TypeError: Cannot read property 'isReader' of undefined - ext-all-debug.js:31039
    This error happens when I open any widget with a store for the third time. Example:
    I have a form with some combos inside a window. I open this form for the first time, it works. I open this form for the second time, it works. On the third time, this error happens.

    The same happens with a grid inside a tabpanel. Everything is destroyed on window/tab is closed and recreated when open the window/tab again.

    I don't have this issue with beta2. Any thoughts?


    A piece of code of my grid:
    Code:
    Ext.define('App.myGrid', {
       extend: 'Ext.grid.GridPanel',
       requires: ['Ext.data.*'],
       initComponent: function(){
          Ext.define('ModelMyGrid', {
             extend: 'Ext.data.Model',
             fields: [
                'my_id', 'my_name', 'my_phone'
             ]
          });
    
          Ext.apply(this, {
             store: Ext.create('Ext.data.Store', {
                model: 'ModelMyGrid',
                autoLoad: true,
                proxy: {
                   url: Cfg.baseUrl+'getDataGrid',
                   type: 'ajax',
                   method: 'POST',
                   reader: {
                      idProperty: 'my_id'
                   }
                }
             })
    ...

  2. #2
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    81
    Vote Rating
    1
    Nom4d3 is on a distinguished road

      0  

    Default


    Ok... I found the problem.


    I was "redefining" the model each time I create the grid. I thought this model would be destroyed. I have no idea why the problem happens only on the third time (always), and why on beta 2 used to work. But now I'm checking if the model is already defined and the problem is solved. Maybe a warning on console about it would avoid future mistake.

    Before:
    Code:
          Ext.define('ModelMyGrid', {
             extend: 'Ext.data.Model',
             fields: [
                'my_id', 'my_name', 'my_phone'
             ]
          });
    After:
    Code:
    if (!Ext.isDefined('ModelMyGrid')){
          Ext.define('ModelMyGrid', {
             extend: 'Ext.data.Model',
             fields: [
                'my_id', 'my_name', 'my_phone'
             ]
          });
    }
    This topic can be closed.

  3. #3
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    81
    Vote Rating
    1
    Nom4d3 is on a distinguished road

      0  

    Default


    Sry... this fix doesn't work. aaahhh....
    Back to tests...

  4. #4
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    81
    Vote Rating
    1
    Nom4d3 is on a distinguished road

      0  

    Default


    Finally!

    Code:
    if (!Ext.ModelManager.isRegistered('ModelMyGrid')){
          Ext.define('ModelMyGrid', {
             extend: 'Ext.data.Model',
             fields: [
                'my_id', 'my_name', 'my_phone'
             ]
          });
    }

  5. #5
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    194
    Vote Rating
    8
    chramer will become famous soon enough

      0  

    Default


    i have the same problem with two stores..
    for the first one your code worked, for the second didn't..

    Uncaught TypeError: Cannot read property 'isReader' of undefined in Proxy.js:161

    first store
    repay.GIF
    second store - on third request I got this (a POST instead of a GET):
    ball.jpg

    the stores have the same structure! i'm working with ext 4.0.2.
    any ideas ??

  6. #6
    Sencha User
    Join Date
    Nov 2007
    Posts
    3
    Vote Rating
    0
    fidget is on a distinguished road

      0  

    Default Still giving errors

    Still giving errors


    The fix by Nom4d3, doesn't work for me. or iam doing something wrong, any ideas what is going wrong here?

    PS. I have a basic MVC setup with a combo box , it gives the same error after 3rd, try...

  7. #7
    Sencha User
    Join Date
    Sep 2011
    Posts
    1
    Vote Rating
    0
    gcesarmza is on a distinguished road

      0  

    Default


    I had the same problem and this worked for me:
    Code:
    if (! Ext.ClassManager.isCreated('ModelMyGrid')) {
          Ext.define('ModelMyGrid', {
             extend: 'Ext.data.Model',
             fields: [
                'my_id', 'my_name', 'my_phone'
             ]
          });
    }

  8. #8
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Vote Rating
    1
    netemp is on a distinguished road

      0  

    Default Thanks a million!

    Thanks a million!


    Thanks for sharing the information. You saved alot of my time.

    Cheers!

Similar Threads

  1. Uncaught TypeError: Cannot read property 'dom' of null
    By webarnie in forum Ext Designer: Help & Discussion
    Replies: 4
    Last Post: 2 Oct 2012, 6:42 AM
  2. Replies: 4
    Last Post: 3 Aug 2011, 2:54 PM
  3. Replies: 0
    Last Post: 25 Mar 2011, 11:56 AM
  4. Uncaught TypeError: Cannot read property 'containerBox' of null
    By lasseok in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 14 Feb 2011, 12:09 PM
  5. Uncaught TypeError: Cannot read property 'length' of undefined
    By a2rdvark in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 23 Dec 2010, 3:48 PM

Thread Participants: 4