cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
934
Views
0
Helpful
2
Replies

http web error - top.mainFrame is undefined

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

 

2 Replies 2

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-
Level 1
Level 1

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];
    }
  }
}
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card