Actions
Bug #13775
closedpfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1
Status Traffic Totals PHP error on dev snapshots w/PHP 8.1
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
23.01
Affected Architecture:
Description
Status Traffic Totals has a problem generating its interface list, and it appears to be from needing to be updated for PHP 8.1.
vnstat_portlist()
uses the old style of code to gather OpenVPN interfaces which is definitely wrong for PHP 8.1 at a minimum.
PHP ERROR: Type: 1, File: /usr/local/pkg/status_traffic_totals.inc, Line: 189, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/status_traffic_totals.inc:189 Stack trace: #0 /usr/local/pkg/status_traffic_totals.inc(76): vnstat_portlist() #1 /usr/local/pkg/status_traffic_totals.inc(226): vnstat_create_nic_dbs() #2 /etc/inc/pkg-utils.inc(707) : eval()'d code(1): vnstat_sync() #3 /etc/inc/pkg-utils.inc(707): eval() #4 /etc/rc.start_packages(66): sync_package('Traffic Totals') #5 {main} thrown @ 2022-12-18 07:29:54
Related issues
Actions