partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.4k stars 403 forks source link

Ext not loading #191

Closed szechyjs closed 12 years ago

szechyjs commented 12 years ago

Just upgraded my version of PartKeepr from a rather old version (20110908020532). The upgrade seemed to go just fine, however when I try to access the front end I get a blank white page. Chrome reports the following error in the console:

Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: PartKeepr.picker.Char ext-all.js:15

Followed by: Uncaught TypeError: Object # has no method 'setLocale' partkeepr.js:1, however I think this is caused by Ext not loading in the first error.

Drachenkaetzchen commented 12 years ago

How did you upgrade?

szechyjs commented 12 years ago

git pull phing build Then I ran the setup wizard in the browser and it completed successfully. On May 19, 2012 5:35 AM, "timoahummel" < reply@reply.github.com> wrote:

How did you upgrade?


Reply to this email directly or view it on GitHub: https://github.com/partkeepr/PartKeepr/issues/191#issuecomment-5800562

Drachenkaetzchen commented 12 years ago

I'm not sure what's going wrong; can you try cloning a fresh copy? PartKeepr works fine here on multiple systems fed from git, so I guess there's something wrong on your box.

szechyjs commented 12 years ago

I just did a fresh clone and I am getting the same error. I'm using my same database, but based on the error I don't think that is the cause. Google suggested adding "Ext.Loader.setConfig({enabled:true});", this eliminated the error, however it then results in the paths to the js source files being incorrect. ie /frontend/js/picker/Char.js?_dc=1337436568121 404 (Not Found) This then leaves me with the spinning loading gears, which would not appear before.

Drachenkaetzchen commented 12 years ago

Can you send me a copy of your partkeepr.jsb3 file? This gets generated after a build.

szechyjs commented 12 years ago

I just ran a new build, here is the file. On May 20, 2012 1:21 PM, "timoahummel" < reply@reply.github.com> wrote:

Can you send me a copy of your partkeepr.jsb3 file? This gets generated after a build.


Reply to this email directly or view it on GitHub: https://github.com/partkeepr/PartKeepr/issues/191#issuecomment-5810476

szechyjs commented 12 years ago
Drachenkaetzchen commented 12 years ago

One thing which might work is: Remove lines 6-8 (containing "requires PartKeepr.picker.Char") in src/frontend/js/Components/ContextMenu/CharPickerMenu.js and build the project. Can you try that?

szechyjs commented 12 years ago

That solved the problem.

Drachenkaetzchen commented 12 years ago

Cool, thanks for the feedback. I'll fix that in PK then.