cema0110 Posted November 13, 2016 Report Share Posted November 13, 2016 (edited) windows7 + php5.6 + nginx http://revive/www/admin/index.php Uncaught ReferenceError: login_focus is not defined at http://revive/www/admin/index.php:119:5 index.php:40 Uncaught ReferenceError: initPage is not defined at onload (http://revive/www/admin/index.php:40:73) 后台管理系统在使用了一段时间之后,就会出现这样的报错,并且顶部的菜单栏的样式出现问题,可以正常登录,登录之后同样是样式出错。 如果清除浏览数据之后,就能够正常使用,但使用几分钟之后又会出现该问题。 Edited November 13, 2016 by cema0110 Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted November 13, 2016 Report Share Posted November 13, 2016 My first thought when I read this was that there might be an ad blocker active in your browser. Quote Link to comment Share on other sites More sharing options...
cema0110 Posted November 14, 2016 Author Report Share Posted November 14, 2016 No AD blocker active, I tried the IE, chrome, firefox several browsers, and also tested on other computers, will appear the problem.After clearing the browser cache can be normal use for a period of time, but then the problem will appear.IE has a feature "always refresh from service", open the function can be normal use. Quote Link to comment Share on other sites More sharing options...
karl-pogi Posted November 13, 2017 Report Share Posted November 13, 2017 Hi, any news on this? Mine was working fine also then started breaking. Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted November 17, 2017 Report Share Posted November 17, 2017 Hi @cema0110, It looks like you are using Revive Adserver with a hosts file entry to perform IP resolution, based on "revive" being the domain name the service is running on. I am not sure, but it might be that Revive Adserver won't work like this, because it's somehow recognising that this is not a valid domain name - Revive Adserver does use the domain name to help manage configuration files. I might be wrong, but this could be related. Could you please try on a real domain? (The localhost domain is okay, if you're just installing and testing locally). Quote Link to comment Share on other sites More sharing options...
larryhems Posted February 22, 2021 Report Share Posted February 22, 2021 On 11/13/2016 at 9:09 PM, cema0110 said: Uncaught ReferenceError: login_focus is not defined There is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in your current script or scope otherwise , it will endup throwing this 'login_focus' is not defined error . This usually indicates that your library is not loaded and JavaScript does not recognize the 'login_focus'. To solve this error: Load your library at the beginning of all your scripts. There can be multiple other reasons for this issue: Added JavaScript library after the script were you see that error Conflict with Other JavaScript Libraries Path to JavaScript library you included is not correct The jQuery library file is corrupted May be a chance where you are working offline Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.