Project

General

Profile

Actions

Bug #13775

closed

pfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1

Status Traffic Totals PHP error on dev snapshots w/PHP 8.1

Added by Jim Pingle almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Status Traffic Totals
Target version:
-
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

Copied from Bug #13774: PIMD Interfaces drop-down empty on dev snapshots w/PHP 8.1ResolvedJim Pingle

Actions
Actions

Also available in: Atom PDF