vestacp-crossover-adminlte icon indicating copy to clipboard operation
vestacp-crossover-adminlte copied to clipboard

JS errors with 0.9.8-17

Open stathis opened this issue 7 years ago • 8 comments

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.

stathis avatar Jan 22 '17 16:01 stathis

Hello I have same problem. Do you resolve it?

eignatov avatar Feb 08 '17 20:02 eignatov

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).

stathis avatar Feb 10 '17 20:02 stathis

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

TRTL4LIFE avatar Feb 22 '17 12:02 TRTL4LIFE

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

mgilank avatar Mar 30 '17 23:03 mgilank

@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.

stathis avatar Mar 31 '17 00:03 stathis

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.

louislam avatar Apr 01 '17 11:04 louislam

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

mgilank avatar Apr 01 '17 17:04 mgilank

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

TRTL4LIFE avatar Apr 02 '17 22:04 TRTL4LIFE