OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: Jetro on November 09, 2022, 02:00:03 pm

Title: [SOLVED] PHP Error on Crash Reporter after 27.7.7 upgrade.
Post by: Jetro on November 09, 2022, 02:00:03 pm
Hello guys,

After upgrading to 22.7.7 i noted an error on the crash reporter:

Code: [Select]
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
FreeBSD 13.1-RELEASE-p3 stable/22.7-n250262-83840459d88 SMP amd64
OPNsense 22.7.7_1 391f1de80
Plugins os-dyndns-1.27_3 os-smart-2.2 os-theme-cicada-1.29 os-wireguard-1.13 os-wol-2.4_1
Time Wed, 09 Nov 2022 12:34:56 +0100
OpenSSL 1.1.1s  1 Nov 2022
Python 3.9.15
PHP 8.0.25

PHP Errors:

[09-Nov-2022 12:29:54 Europe/Rome] TypeError: array_merge(): Argument #1 must be of type array, null given in /usr/local/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/GeneralController.php:93
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/GeneralController.php(93): array_merge(NULL, Array)
#1 [internal function]: OPNsense\Wireguard\Api\GeneralController->getStatusAction()
#2 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\Wireguard\Api\GeneralController), 'getStatusAction', Array)
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#4 /usr/local/opnsense/www/api.php(24): Phalcon\Mvc\Application->handle('/api/wireguard/...')
#5 {main}
[09-Nov-2022 12:30:18 Europe/Rome] TypeError: array_merge(): Argument #1 must be of type array, null given in /usr/local/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/GeneralController.php:93
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/GeneralController.php(93): array_merge(NULL, Array)
#1 [internal function]: OPNsense\Wireguard\Api\GeneralController->getStatusAction()
#2 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\Wireguard\Api\GeneralController), 'getStatusAction', Array)
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#4 /usr/local/opnsense/www/api.php(24): Phalcon\Mvc\Application->handle('/api/wireguard/...')
#5 {main}

I noticed that removing the wireguard dashboard plugin solve the problem, so it might be related
Title: Re: PHP Error on Crash Reporter after 27.7.7 upgrade.
Post by: Fright on November 09, 2022, 03:50:43 pm
https://forum.opnsense.org/index.php?topic=30916.0
Title: Re: [SOLVED] PHP Error on Crash Reporter after 27.7.7 upgrade.
Post by: Jetro on November 17, 2022, 02:55:38 pm
Thank you so much, i searched a lot but didn't found out anything.

Marked as solved.