Project

General

Profile

Actions

Bug #15190

closed

PHP error from RRD Graphs when resolution is null

Added by Christopher Cope 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Low
Category:
Status_Monitoring
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.03
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Happens on

23.09.1-RELEASE (amd64)
built on Wed Dec 20 13:27:00 EST 2023
FreeBSD 14.0-CURRENT

[25-Jan-2024 00:58:45 US/Mountain] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
Stack trace:
#0 {main}
  thrown in /usr/local/www/rrd_fetch_json.php on line 149

I am attempting to reproduce the error. The line in question is "$end -= $resolution;"

The error indicates $resolution is null. A check to verify the value is sane is a simple fix.


Files

clipboard-202402071211-fpg2l.png (54.6 KB) clipboard-202402071211-fpg2l.png Danilo Zrenjanin, 02/07/2024 11:11 AM
Actions

Also available in: Atom PDF