OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: chienchou.pan on February 02, 2021, 02:40:13 am

Title: Firewall:Aliases can't add new one
Post by: chienchou.pan on February 02, 2021, 02:40:13 am
When I upgrade opensense to 21.1 , The Aliases has a problem. old rules still display, but I can't edit it and can't add new rule.(click + , no respond)
Title: Re: Firewall:Aliases can't add new one
Post by: franco on February 02, 2021, 08:41:54 am
https://forum.opnsense.org/index.php?topic=21232.0
https://forum.opnsense.org/index.php?topic=21199.0

Took me 10 seconds to find.

What you could do is add browser name and version, maybe error from developer console as well.


Cheers,
Franco
Title: Re: Firewall:Aliases can't add new one
Post by: chienchou.pan on February 02, 2021, 10:22:25 am
The erroe message is like below

ncaught TypeError: string.replaceAll is not a function  tokenize2.js?v=d518ea4e6f99547a:1033
    at Tokenize2.escape (tokenize2.js?v=d518ea4e6f99547a:1033)
    at Tokenize2.dropdownAddItem (tokenize2.js?v=d518ea4e6f99547a:847)
    at Tokenize2.<anonymous> (tokenize2.js?v=d518ea4e6f99547a:121)
    at HTMLSelectElement.i (jquery-3.5.1.min.js:2)
    at HTMLSelectElement.dispatch (jquery-3.5.1.min.js:2)
    at HTMLSelectElement.v.handle (jquery-3.5.1.min.js:2)
    at Object.trigger (jquery-3.5.1.min.js:2)
    at HTMLSelectElement.<anonymous> (jquery-3.5.1.min.js:2)
    at Function.each (jquery-3.5.1.min.js:2)
    at S.fn.init.each (jquery-3.5.1.min.js:2)

my brower is chrome 84.0.4147.125
Title: Re: Firewall:Aliases can't add new one
Post by: Headologic on February 02, 2021, 05:54:26 pm
I also have this strange problem.
However, I noticed that when I click on "Add Alias", the window does not appear in the middle but in the top left corner above the "OPNsense Logo".
I think the error is in the correct positioning of the edit window.
See attachment
Title: Re: Firewall:Aliases can't add new one
Post by: franco on February 02, 2021, 07:26:40 pm
my brower is chrome 84.0.4147.125

Well, Chrome 85 will support it. Chrome 85 was released 5 months ago.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll#browser_compatibility

I also have this strange problem.

I don't see a browser version here too and looking at https://forum.opnsense.org/index.php?topic=21199.msg99471#msg99471 nobody confirms the patches we work on to help people with older browsers so I am not very enthusiastic about responding again to this thread.


Cheers,
Franco
Title: Re: Firewall:Aliases can't add new one
Post by: chienchou.pan on February 03, 2021, 01:52:15 am
Thanks. I can use opnsense WEB GUI normally, I change to chrome 89.0.4385.0, and all funtions look like fine.