Project

General

Profile

Actions

Bug #10248

closed

PHP Warning: A non-numeric value encountered in /etc/inc/rrd.inc on line 418

Added by Chris Linstruth almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
RRD Graphs
Target version:
Start date:
02/09/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.5
Affected Architecture:
All

Description

Getting this on boot after upgrading to 2.4.5. Saw it on ARM and amd64.

Crash report begins.  Anonymous machine information:

amd64
11.3-STABLE
FreeBSD 11.3-STABLE #75 db7485d7b99(factory-RELENG_2_4_5): Sun Feb  9 04:36:38 EST 2020     root@buildbot2-nyi.netgate.com:/build/factory-crossbuild-245/obj/amd64/OwEBqLPQ/build/factory-crossbuild-245/sources/FreeBSD-src/sys/pfSense

Crash report details:

PHP Errors:
[09-Feb-2020 23:56:30 UTC] PHP Warning:  A non-numeric value encountered in /etc/inc/rrd.inc on line 418
[09-Feb-2020 23:56:30 UTC] PHP Warning:  A non-numeric value encountered in /etc/inc/rrd.inc on line 418

No FreeBSD crash data found.
Actions #1

Updated by Jim Pingle almost 2 years ago

  • Target version set to 2.5.0

Looks like that line is trying to get bandwidth on an ALTQ queue.

$qbandwidth = $altq->GetBandwidth() * $factor;

Might need to cast that to int, like so:

$qbandwidth = (int) $altq->GetBandwidth() * $factor;

Nothing has changed in that code for ~10yrs so it must be something in the config that triggered it.

Actions #2

Updated by Jim Pingle almost 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Jim Pingle
  • Target version changed from 2.5.0 to 2.4.5
Actions #3

Updated by Jim Pingle almost 2 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Chris Linstruth almost 2 years ago

This tests good here. No more errors. Thanks.

Actions #5

Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF