Jump to content

Uncaught ReferenceError: initPage is not defined


Recommended Posts

windows7 + php5.6 + nginx


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 by cema0110
Link to comment
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.

Link to comment
Share on other sites

  • 11 months later...

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

Link to comment
Share on other sites

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


Link to comment
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.

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