Project

General

Profile

Actions

Bug #14236

closed

PHP Error when viewing Traffic Graphs in ``iftop`` mode

Added by Steve Wheeler about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Traffic Graphs
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:

Description

When monitoring traffic graphs which use iftop.

[05-Apr-2023 09:22:27 America/New_York] PHP Fatal error:  Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /etc/inc/util.inc:2146
Stack trace:
#0 /etc/inc/util.inc(2146): round('', 2)
#1 /usr/local/pfSense/include/www/bandwidth_by_ip.inc(172): format_number('', 2)
#2 /usr/local/www/bandwidth_by_ip.php(36): printBandwidth('opt2', 'remote', 'in', '', 'iftop')
#3 {main}
  thrown in /etc/inc/util.inc on line 2146

See:
https://forum.netgate.com/topic/179274/traffic-graph-php-error
and
https://forum.netgate.com/topic/178906/php-fatal-error-uncaught-typeerror-round-argument-1-num-must-be-of-type-int-float


Related issues

Related to Regression #14500: PHP Error when viewing Traffic Graphs in ``iftop`` modeResolvedJim Pingle

Actions
Actions

Also available in: Atom PDF