Project

General

Profile

Bug #9558

GPS NTP source PHP errors

Added by Steve Wheeler 6 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
NTPD
Target version:
Start date:
05/28/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.x
Affected Architecture:
All

Description

The output from a non-sync'd GPS set as an NTP source produces PHP errors in the NTP status. Both the main status page and the widget.

PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 74
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 76
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 87
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 89
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 131
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 133
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 118
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 120

Associated revisions

Revision c92dbfc1 (diff)
Added by Jim Pingle 6 months ago

Ensure NTP values are treated as numbers before use. Fixes #9558

Revision 89b123fb (diff)
Added by Jim Pingle 6 months ago

Ensure NTP values are treated as numbers before use. Fixes #9558

(cherry picked from commit c92dbfc189ee4cc66726d817f47e5473f8ffe147)

History

#1 Updated by Jim Pingle 6 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Jim Pingle 3 months ago

  • Category changed from Web Interface to NTPD

#3 Updated by Steve Wheeler 3 months ago

  • Status changed from Feedback to Resolved

This is fixed.

Tested against:

2.5.0-DEVELOPMENT (amd64)
built on Tue Aug 20 20:47:31 EDT 2019
FreeBSD 12.0-RELEASE-p9

Also available in: Atom PDF