cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1811
Views
2
Helpful
3
Replies

http web error - top.mainFrame is undefined

DavidUtterman5286
Community Member

Hello,

 

I've upgraded my Catalyst to the latest firmware avaliable. But after that the webpage stopped working and I see this Javascript error when trying to see "Port Status" or other pages.

 

Do I need to configure something for this to work?

 

Screenshot 2021-09-18 at 17.05.39.png

 

 

Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 26 WS-C2960-24LT-L 12.2(55)SE12 C2960-LANBASEK9-M

 

S1#sh boot
BOOT path-list : flash:c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin

 

3 Replies 3

Georg Pauwen
VIP Alumni
VIP Alumni

Hello,

 

tough one, as this error is typically related to JavaScript and probably META tags. Make sure you have JavaScript enabled (assuming you are trying to access the switch GUI from a Windows machine)...

 

https://www.businessinsider.com/how-to-enable-javascript-in-google-chrome-on-windows-10?international=true&r=US&IR=T

-rob-
Community Member

I'm having this problem as well on a 3560X. Georg's answer makes no sense. Javascript is obviously enabled or it wouldn't be able to throw a runtime error. Anyways, here's a greasemonkey script I wrote to fix the problem. Feel free to use it or modify it as you'd like.

 

// ==UserScript==
// @name     Cisco Device Manager Fix
// @version  1
// @grant    none
// ==/UserScript==

unsafeWindow.mainFrame = undefined;

window.onload = function() {
 for (var i = 0; i < frames.length; i++) {
    if (frames[i].frameElement.name === 'mainFrame') {
      unsafeWindow.mainFrame = frames[i];
    }
  }
}

omega-den
Community Member

Having the same issue. Anybody knows where I should put this script?

UPD. Managed to normally use the webUI by opening it with Internet Explorer mode in Microsoft Edge.