Jump to content
cema0110

Uncaught ReferenceError: initPage is not defined

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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