Jump to content

Recommended Posts

Posted (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)

QQ%E6%88%AA%E5%9B%BE20161113231652.png

后台管理系统在使用了一段时间之后,就会出现这样的报错,并且顶部的菜单栏的样式出现问题,可以正常登录,登录之后同样是样式出错。

如果清除浏览数据之后,就能够正常使用,但使用几分钟之后又会出现该问题。

Edited by cema0110
Posted

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.

  • 11 months later...
Posted

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

  • 3 years later...
Posted
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

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...