OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: tokade on February 01, 2021, 12:52:13 PM

Title: Can't edit / create new firewall rules
Post by: tokade on February 01, 2021, 12:52:13 PM
Hi,

after update to 21.1 I cant' edit / create new firewall rule (NAT outbounde and normal rules). The dropdown behaviour is strange. Following error messages are in the log:

[31-Jan-2021 18:50:52 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/firewall_rules_edit.php on line 1222
[31-Jan-2021 18:54:44 Europe/Berlin] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[31-Jan-2021 18:55:19 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/firewall_rules_edit.php on line 1222


Kind regards
Torsten
Title: Re: Can't edit / create new firewall rules
Post by: franco on February 01, 2021, 01:26:34 PM
Hi Torsten,

Might be looking at https://forum.opnsense.org/index.php?topic=21199.msg99471#msg99471 -- old browser not supporting string.replaceAll

The PHP errors are only cosmetic and fixed in 21.1.1.


Cheers,
Franco
Title: Re: Can't edit / create new firewall rules
Post by: tokade on February 01, 2021, 02:03:28 PM
Hi Franco,

tried again today and everything seems to work fine. Maybe the browser cache wasn't clean directly after updating OPNsense. For the records, I'm using Chrome news version.

Regards
Torsten
Title: Re: Can't edit / create new firewall rules
Post by: franco on February 01, 2021, 02:22:51 PM
Hi Torsten,

Ok, could be then. Just trying to be thorough :)


Cheers,
Franco