Dashboard Widget Error
-
Hello,
When I try to load the dashboard, I am getting the following error and it will not load. All other pages load fine, but the dashboard shows an error. How can I remove the widget that is causing the issue?
amd64
16.0-CURRENT
FreeBSD 16.0-CURRENT #7 plus-RELENG_25_11_1-n256519-3d5e07ee0abe: Mon Jan 19 17:34:47 UTC 2026 root@pfsense-build-release-amd64-1.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-Plus-snapshots-25_11_1-main/obj/amd64/8uazGBdh/var/jenkins/workspace/pCrash report details:
PHP Errors:
[18-Mar-2026 03:08:29 America/New_York] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /usr/local/www/widgets/widgets/traffic_graphs.widget.php:117
Stack trace:
#0 /usr/local/www/widgets/widgets/traffic_graphs.widget.php(117): explode()
#1 /usr/local/www/index.php(542): include('/usr/local/www/...')
#2 {main}
thrown in /usr/local/www/widgets/widgets/traffic_graphs.widget.php on line 117
[18-Mar-2026 09:44:16 America/New_York] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /usr/local/www/widgets/widgets/traffic_graphs.widget.php:117
Stack trace:
#0 /usr/local/www/widgets/widgets/traffic_graphs.widget.php(117): explode()
#1 /usr/local/www/index.php(542): include('/usr/local/www/...')
#2 {main}
thrown in /usr/local/www/widgets/widgets/traffic_graphs.widget.php on line 117No FreeBSD crash data found.

-
What I would do :
As
/usr/local/www/widgets/widgets/traffic_graphs.widget.php
fails, disable it.Rename
/usr/local/www/widgets/widgets/traffic_graphs.widget.php
to
/usr/local/www/widgets/widgets/traffic_graphs.widgetx.phpand now the dashboard loads.
remove a random widget, and add it back in again, so the main config.xml get recreated with the current set of shown widgets.
Now, rename /usr/local/www/widgets/widgets/traffic_graphs.widgetx.php back to the original name.
Plan B :
Open the config.xml file with a decent text editor (Notepad++).
Locate
/usr/local/www/widgets/widgets/traffic_graphs.widgetx.phpIn the <widgets> ....... </widgets>, locate the settings of <traffic_graphs> .... </traffic_graphs>
and remove it :
so remove these 8 lines.
Save.
Import the config back into pfSense.
This will reset all widget settings to 'default'.Btw : in the <sequence> ... </sequence> line, remove also :

so remove :
,traffic_graphs:col2:open:0save and Import.
This will inhibit the widget from loading and shown.Maybe there is a cleaner "click here and issue solved" solution. I didn't apply the RTFM method neither.
And yes, if you didn't know already : console or SSH access is worth gold ^^
-
@Gertjan Thank you. I removed the file, and it loads. I copied the file from a working router (same version) and got the same error. But for now, I can use the dashboard. I will look deeper into why even a new file causes the issue.