Hi. Great widget!
However I have a small issue:
I have 3 pfsense 2.7.2 instances running in 3 different locations.
I installed the widget and the bsd 13 ookla version of speedtest.
On two of them, it runs without a hitch.
On the third, speedtest runs fine from cli, however, if I run it from the widget, the widget will say "speedtest failed"

However, I can see in the traffic graph that it actually runs speedtest.
If I then refresh the dashboard, it will say that pfSense has detected a crash:

This is the error output:
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec 6 20:45:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F
Crash report details:
PHP Errors:
[09-Dec-2024 14:32:30 Europe/Bucharest] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
Stack trace:
#0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
#1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
#2 /etc/inc/notices.inc(662): notify_via_smtp('pfSense is rest...')
#3 /etc/inc/notices.inc(151): notify_all_remote('pfSense is rest...')
#4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'pfSense is rest...', 'pfSenseConfigur...', '')
#5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
#6 /usr/local/www/widgets/widgets/speedtest.widget.php(93): write_config('Save speedtest ...')
#7 {main}
thrown in /etc/inc/util.inc on line 3662
[09-Dec-2024 14:32:30 Europe/Bucharest] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
Stack trace:
#0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
#1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
#2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
#3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
#4 /etc/inc/config.lib.inc(1154): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
#5 [internal function]: pfSense_clear_globals()
#6 {main}
thrown in /etc/inc/util.inc on line 3662
No FreeBSD crash data found.
LE: I tried the official 2.7.2 speedtest version directly from the repos on the other two, but it doesn't work at all. Running speedtest -h shows that the syntax for speedtest has changed in the newer version.
Hi. Great widget!


However I have a small issue:
I have 3 pfsense 2.7.2 instances running in 3 different locations.
I installed the widget and the bsd 13 ookla version of speedtest.
On two of them, it runs without a hitch.
On the third, speedtest runs fine from cli, however, if I run it from the widget, the widget will say "speedtest failed"
However, I can see in the traffic graph that it actually runs speedtest.
If I then refresh the dashboard, it will say that pfSense has detected a crash:
This is the error output:
LE: I tried the official 2.7.2 speedtest version directly from the repos on the other two, but it doesn't work at all. Running speedtest -h shows that the syntax for speedtest has changed in the newer version.