OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: zyon on January 30, 2021, 02:41:15 pm

Title: PHP error
Post by: zyon on January 30, 2021, 02:41:15 pm
Hi all,

Since the update from 20.7 to 21.1 i have a message on the dashboard :
              A problem was detected. Click here for more information.

 System Information:

User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
FreeBSD 12.1-RELEASE-p12-HBSD #0  3c6040c7243(stable/21.1)-dirty: Mon Jan 25 12:27:52 CET 2021     root@sensey:/usr/obj/usr/src/amd64.amd64/sys/SMP amd64
OPNsense 21.1 500892915
Plugins os-dyndns-1.23 os-igmp-proxy-1.5 os-theme-cicada-1.25 os-wol-2.3
Time Sat, 30 Jan 2021 14:39:10 +0100
OpenSSL 1.1.1i  8 Dec 2020
PHP 7.3.26

PHP Errors:

[30-Jan-2021 14:24:15 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:24:31 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:24:51 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:24:57 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:25:35 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:25:52 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:26:14 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:26:19 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:28:17 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:32:34 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_out_edit.php on line 222
[30-Jan-2021 14:33:03 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:33:08 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:36:50 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216
[30-Jan-2021 14:36:55 Europe/Paris] PHP Warning:  implode(): Invalid arguments passed in /usr/local/www/firewall_nat_edit.php on line 216


But all work perfectly.
Any idea ?

Regards
Title: Re: PHP error
Post by: Fright on January 30, 2021, 03:16:26 pm
Hi
Quote
But all work perfectly.
Any idea ?
just wait a little
imho a little category migration issue (category existence not checked before parsing). sure will be fixed soon
Title: Re: PHP error
Post by: zyon on January 30, 2021, 06:14:23 pm
Yep, I can imagine

I preferred to feed back the information, in any case, it does not seem to impact the operation.

Thank you :)
Title: Re: PHP error
Post by: franco on January 30, 2021, 07:55:43 pm
Was fixed yesterday it seems...

https://github.com/opnsense/core/commit/bf42e6efce1

# opnsense-patch bf42e6efce1


Cheers,
Franco
Title: Re: PHP error
Post by: Fright on January 30, 2021, 08:44:06 pm
@franco
already applied. keeps throwing error on empty category (POST not sending category[] in form data at all if not set in select)

works quiet with
Code: [Select]

        if (isset($pconfig['category'])){
            $natent['category'] = implode(",", $pconfig['category']);
        }

Title: Re: PHP error
Post by: dia4 on February 06, 2021, 03:35:28 pm
hi, i have a question. Should i restart OPNsense after a patch applied or not?


Thanx
Title: Re: PHP error
Post by: franco on February 06, 2021, 04:07:39 pm
No restart necessary. There are two patches now, but woth will be in 21.1.1 next week anyway. No need to manually patch up cosmetics at this point.


Cheers,
Franco
Title: Re: PHP error
Post by: dia4 on February 07, 2021, 07:44:31 pm
Super!


Thank you