louislam / vestacp-crossover-adminlte

Awesome UI for VestaCP
https://www.youtube.com/watch?v=noiE3eu6hiU
MIT License
97 stars 39 forks source link

JS errors with 0.9.8-17 #11

Open stathis opened 7 years ago

stathis commented 7 years ago

I have installed the theme by unzipping and afterwards I restored the backup and used bower as well, in case only one way failed.

I get the following errors on the js console:

Uncaught ReferenceError: GLOBAL is not defined
    at app.js?1446554103:727
templates.js:5 Uncaught TypeError: Cannot read property 'Templates' of undefined
    at templates.js:5
app.js?1476144160:727 Uncaught ReferenceError: GLOBAL is not defined
    at app.js?1476144160:727
i18n.js.php:2 Uncaught TypeError: Cannot read property 'i18n' of undefined
    at i18n.js.php:2
templates.js:5 Uncaught TypeError: Cannot read property 'Templates' of undefined
    at templates.js:5
app.min.js:13 Uncaught TypeError: Cannot read property 'options' of undefined
    at HTMLDocument.<anonymous> (app.min.js:13)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.J (jquery.min.js:2)
(index):725 Uncaught ReferenceError: hover_menu is not defined
    at HTMLDocument.<anonymous> ((index):725)
    at o (jquery-1.7.2.min.js?1476144160:2)
    at Object.fireWith (jquery-1.7.2.min.js?1476144160:2)
    at Function.ready (jquery-1.7.2.min.js?1476144160:2)
    at HTMLDocument.B (jquery-1.7.2.min.js?1476144160:2)

No visible elements load on the DOM at all. Just a light blue body. After a bit of tinkering, I traced one of the problems to jquery-1.7.2 being redeclared. I also found more js files being redeclared more than 1 time.

eignatov commented 7 years ago

Hello I have same problem. Do you resolve it?

stathis commented 7 years ago

I have managed to fix some of them by removing redundant entries. Still though, some pages in the interface don't work properly (for example Emails).

TRTL4LIFE commented 7 years ago

@stathis could you elaborate? What did you edit/remove? Would help me out a lot!

mgilank commented 7 years ago

i commented out jquery 1.7.2 in scripts.html works well, dont have issue in mail menu. but still showing about js error in console

stathis commented 7 years ago

@mgilank DNS records don't work though. Plus if you go into mail settings, "william.cage@" appears in the box to the right instead of the user's actual username.

louislam commented 7 years ago

Thanks everyone, based on you guys comment, I just update the theme. If you would like to test it out, you could checkout the master branch.

mgilank commented 7 years ago

the name "william.cage" is gone, but the listing details in dns record still hide/missing. great job btw.

TRTL4LIFE commented 7 years ago

Works like a charm. I see that the server stat page isn't styled yet. I'll push a fix in the future :)