Results 1 to 3 of 3

Thread: Cache Manifest: Cannot read property of undefined

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    31

    Default Cache Manifest: Cannot read property of undefined

    Hello everyone,

    I have a problem when i try to cache the files of my application. Without using the cache manifest my app runs flawlessly but after I do that, it just downloads all the files of the app but it doesn't run correctly. Instead it gives me the following exception :"Uncaught TypeError: Cannot read property 'length' of undefined" I can't even locate the error so it's a bit difficult to figure what's going on. Here it is my Cache Manifest File:

    Code:
    CACHE MANIFEST
    
    
    CACHE:
    
    
    lib/sencha-touch/resources/css/sencha-touch.css
    lib/sencha-touch/sencha-touch.js
    Houses/views/houses.css
    main.js
    Houses/models/Models.js
    Houses/models/Stores.js 
    Houses/Boot.js
    Houses/views/lists/Doors.js
    Houses/views/lists/Gardens.js
    Houses/views/lists/Yards.js
    Houses/views/lists/Halls.js
    Houses/views/lists/Kitchens.js
    Houses/views/lists/LivingRooms.js
    Houses/views/lists/Bedrooms.js
    Houses/views/lists/WallsView.js
    Houses/views/lists/HousesView.js
    Init.jsp
    And the exception:

    Code:
    • [COLOR=red !important]Uncaught TypeError: Cannot read property 'length' of undefined[/COLOR]
      • [COLOR=red !important]Ext.data.Store.Ext.extend.loadRecords[/COLOR]sencha-touch.js:6
      • [COLOR=red !important]Ext.data.Store.Ext.extend.onProxyLoad[/COLOR]sencha-touch.js:6
      • [COLOR=red !important](anonymous function)[/COLOR]sencha-touch.js:6
      • [COLOR=red !important]Ext.data.Connection.Ext.extend.onComplete[/COLOR]sencha-touch.js:6
      • [COLOR=red !important]Ext.data.Connection.Ext.extend.onStateChange[/COLOR]sencha-touch.js:6
      • [COLOR=red !important](anonymous function)[/COLOR]

  2. #2
    Sencha User SpyKeey's Avatar
    Join Date
    Oct 2011
    Location
    Iasi, Romania
    Posts
    8

    Question Found any solution?

    Hello,

    I've got the same problem. After caching I get that error and nothing works.
    Any luck finding a solution.

    Regards Luigi,

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    1

    Default I have solved this

    I have a same problem
    and I resolved by insert a (*) asterisk sign under NETWORK: section like this

    CACHE MANIFEST
    CACHE:
    XXXXXX.js
    NETWORK:
    *

    you can try this ^^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •