Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Javascript that Opera complains about

Featured Replies

While working on a problem in Opera unrelated to MSFN, I had reason to enable its error logging feature. Here is an example found in the log of something it flags as an error:

--- 03 Jan 2010 02:13:50 ---
[url="http://www.msfn.org/board/index.php"]http://www.msfn.org/board/index.php[/url]?
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

The thing that pops up over and over is that item Undefined variable: _gat. Means nothing to me, maybe it does to the administrators? I should note that I see entries from other websites mentioning variables as well (e.g., urchinTracker).

Also it seems that the log reflects the currently focused webpage. Here are the last few entries right from the log while I have been here at MSFN:

--- 03 Jan 2010 02:19:15 ---
[url="http://www.msfn.org/board/win9x-tools-realtime-process-monitors-t140830.html"]http://www.msfn.org/board/win9x-tools-real...rs-t140830.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:19:25 ---
[url="http://www.msfn.org/board/add-reply-f8-t140830.html"]http://www.msfn.org/board/add-reply-f8-t140830.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:19:52 ---
[url="http://www.msfn.org/board/win9x-tools-realtime-process-monitors-t140830-pid-900998.html"]http://www.msfn.org/board/win9x-tools-real...pid-900998.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:20:17 ---
[url="http://www.msfn.org/board/add-reply-f8-t137637.html"]http://www.msfn.org/board/add-reply-f8-t137637.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:32:36 ---
[url="http://www.msfn.org/board/index.php"]http://www.msfn.org/board/index.php[/url]?
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:33:05 ---
[url="http://www.msfn.org/board/forum.html"]http://www.msfn.org/board/forum.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:51:36 ---
[url="http://www.msfn.org/board/index.php"]http://www.msfn.org/board/index.php[/url]?
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:54:15 ---
[url="http://www.msfn.org/board/opera-10-t137637-pid-901001.html"]http://www.msfn.org/board/opera-10-t137637-pid-901001.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:54:42 ---
[url="http://www.msfn.org/board/site-forum-issues-f23.html"]http://www.msfn.org/board/site-forum-issues-f23.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 02:55:07 ---
[url="http://www.msfn.org/board/create-new-post-in-site-forum-issues-f23.html"]http://www.msfn.org/board/create-new-post-...issues-f23.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

I'm pretty sure that last line of each entry is stating that I have Javascript debugging disabled or something. Does anyone enable that? And would it reduce or increase these error entries?

Just thought I would bring this to your attention.


Have you blocked the Google Analytics script by any chance (or set the domain to an invalid IP in your hosts file or something)? That would cause such errors in any browser.

Works fine over here (not using Opera though! :puke: )

  • Author

Let me see, as far as script related settings:

I have all of these disabled ...

0 Allow resizing of windows

0 Allow moving of windows

0 Allow raising of windows

0 Allow lowering of windows

0 Allow changing of status field

0 Allow scripts to detect context menu events

0 Allow script to hide address bar

0 Open Console on error

I have no user.js scripting enabled.

I do see this re-routed in HOSTS ...

127.0.0.1 ssl.google-analytics.com

I just re-enabled it (commented it out) ...

# 127.0.0.1 ssl.google-analytics.com

Well that wasn't it. Here is the log after the HOSTS change (I was just clicking on a bunch of open tabs, here and at Opera so the entries reflect the focused tab):

--- 03 Jan 2010 04:53:27 ---
[url="http://www.msfn.org/board/win9x-tools-realtime-process-monitors-t140830.html"]http://www.msfn.org/board/win9x-tools-real...rs-t140830.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

;;;;;;;;; HOSTS re-enabled # 127.0.0.1 ssl.google-analytics.com ... 20010-01-03 04:58

--- 03 Jan 2010 05:09:30 ---
[url="http://www.opera.com/docs/operafiles/"]http://www.opera.com/docs/operafiles/[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://my.opera.com/community/forums/topic.dml?id=200095&abc=&page=3&skip=100&show=&perscreen=50"]http://my.opera.com/community/forums/topic...mp;perscreen=50[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://my.opera.com/community/forums/topic.dml?id=260737"]http://my.opera.com/community/forums/topic.dml?id=260737[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://my.opera.com/community/forums/topic.dml?id=295728"]http://my.opera.com/community/forums/topic.dml?id=295728[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://my.opera.com/community/forums/topic.dml?id=310331"]http://my.opera.com/community/forums/topic.dml?id=310331[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://my.opera.com/community/forums/topic.dml?id=256618"]http://my.opera.com/community/forums/topic.dml?id=256618[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:30 ---
[url="http://www.google-analytics.com/ga.js"]http://www.google-analytics.com/ga.js[/url]
Linked script not loaded

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/topic.dml?id=260737"]http://my.opera.com/community/forums/topic.dml?id=260737[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/topic.dml?id=295728"]http://my.opera.com/community/forums/topic.dml?id=295728[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/topic.dml?id=310331"]http://my.opera.com/community/forums/topic.dml?id=310331[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/forum.dml?id=26"]http://my.opera.com/community/forums/forum.dml?id=26[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/topic.dml?id=256618"]http://my.opera.com/community/forums/topic.dml?id=256618[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:31 ---
[url="http://my.opera.com/community/forums/topic.dml?id=334421&t=1260761556&page=1"]http://my.opera.com/community/forums/topic...1556&page=1[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:33 ---
[url="http://www.msfn.org/board/javascript-opera-complains-t140832.html"]http://www.msfn.org/board/javascript-opera...ns-t140832.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:33 ---
[url="http://www.msfn.org/board/win9x-tools-realtime-process-monitors-t140830.html"]http://www.msfn.org/board/win9x-tools-real...rs-t140830.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:09:51 ---
[url="http://ask.metafilter.com/87642/Opera-Browser-Woes"]http://ask.metafilter.com/87642/Opera-Browser-Woes[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

--- 03 Jan 2010 05:18:12 ---
[url="http://www.msfn.org/board/add-reply-f23-t140832.html"]http://www.msfn.org/board/add-reply-f23-t140832.html[/url]
Inline script thread
Error:
name: ReferenceError
message: Statement on line 2: Undefined variable: _gat
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

That last entry is from this very post I am editing.

Could there be some other servers with obsfucated names relating to GA that also might be hiding in HOSTS?

Thanks...CTH

127.0.0.1 ssl.google-analytics.com

That's another address it uses. You often have to do a ipconfig /flushdns for these changes to take effect.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.