OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: jroberts on December 24, 2025, 02:10:11 PM

Title: Web GUI API not getting data
Post by: jroberts on December 24, 2025, 02:10:11 PM
Hi all,

I've recently installed opnsense and am using it as a router. After leaving it running for around 3-4 hours, the web GUI starts to get errors and says "Failed to load widget" and a popup appears saying "Danger ~ Unexpected error, check log for details".
Moreover, the log and parts of the GUI such as the leases for my DHCP IPv4 are not there. My internet still works fully and is completely fine but I cannot access any data in the web GUI.

Sometimes, some widgets come back and start to deliver info again but some don't. I've tried restoring the software to factory settings, updating the software (im currently on 25.7) and still this error persists. I get a plethora of error codes but this is the newest one:


[24-Dec-2025 13:09:22 Etc/UTC] TypeError: array_column(): Argument #1 ($array) must be of type array, null given in /usr/local/opnsense/mvc/app/controllers/OPNsense/Routing/Api/SettingsController.php:97
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Routing/Api/SettingsController.php(97): array_column(NULL, 'name')
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php(166): OPNsense\Routing\Api\SettingsController->searchGatewayAction()
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#4 /usr/local/opnsense/www/api.php(36): OPNsense\Mvc\Router->routeRequest('/api/routing/se...', Array)
#5 {main}


Any help would be greatly appreciated!