Project

General

Profile

Actions

Regression #13970

open

PHP error in apcupsd widget from UTF-8 string handling

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

Status:
Feedback
Priority:
Normal
Assignee:
Category:
apcupsd
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05
Affected Version:
Affected Plus Version:
23.01
Affected Architecture:

Description

In 23.01 release:

PHP ERROR: Type: 1, File: /usr/local/www/widgets/widgets/apcupsd.widget.php, Line: 206, Message: Uncaught TypeError: ceil(): Argument #1 ($num) must be of type int|float, string given in /usr/local/www/widgets/widgets/apcupsd.widget.php:206
Stack trace:
#0 /usr/local/www/widgets/widgets/apcupsd.widget.php(206): ceil('29.2\xC2')
#1 /usr/local/www/widgets/widgets/apcupsd.widget.php(339): compose_apc_contents('apcupsd-0')
#2 {main}
thrown @ 2023-02-16 10:50:34

See: https://forum.netgate.com/topic/177946/apcupsd-widget-error-with-23-1-installed


Related issues

Related to Bug #11898: PHP error from apcupsd dashboard widget when battery is chargingResolvedJim Pingle

Actions
Has duplicate Bug #14014: APCUPSD widget not working after pfSense + update to v.23.01Duplicate

Actions
Actions

Also available in: Atom PDF