Project

General

Profile

Actions

Bug #14033

closed

PHP error in NTP Server if the configuration contains a partial section of old ``openntpd`` settings

Added by FCS FCS about 1 year ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
NTPD
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:
SG-2100

Description

Did a reboot and set NTP setting again, and error persists. https://192.168.x.x/services_ntpd.php

Error:

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_ntpd.php:48 Stack trace: #0 {main} thrown in /usr/local/www/services_ntpd.php on line 48 PHP ERROR: Type: 1, File: /usr/local/www/services_ntpd.php, Line: 48, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_ntpd.php:48 Stack trace: #0 {main} thrown

Crash Report:

Crash report begins. Anonymous machine information:

arm64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:28:37 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/aarch64/Z3hsU8Fs/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/Free

Crash report details:

PHP Errors:
[25-Feb-2023 16:08:58 Europe/Brussels] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_ntpd.php:48
Stack trace:
#0 {main}
thrown in /usr/local/www/services_ntpd.php on line 48
[25-Feb-2023 16:10:55 Europe/Brussels] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_ntpd.php:48
Stack trace:
#0 {main}
thrown in /usr/local/www/services_ntpd.php on line 48

Actions #1

Updated by FCS FCS about 1 year ago

20230226 - Fixed by a reset to "Factory Defaults".

Actions #2

Updated by Jim Pingle about 1 year ago

  • Project changed from pfSense Plus to pfSense
  • Category changed from NTPD to NTPD
  • Assignee set to Jim Pingle
  • Target version set to 2.7.0
  • Affected Plus Version deleted (23.01)
  • Plus Target Version set to 23.05

Looks like that could happen if your configuration still happened to have a partial section from the old openntpd setup on there.

Resetting to factory defaults would work around that but it shouldn't be necessary.

Actions #3

Updated by Jim Pingle about 1 year ago

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

Updated by Jordan G about 1 year ago

no issues using or configuring NTP on aarch64 running 23.05.a.20230407.0116

Actions #5

Updated by Jim Pingle about 1 year ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Jim Pingle about 1 year ago

  • Subject changed from NTP under Services generates a PHP error to PHP error in NTP Server if the configuration contains a partial section of old ``openntpd`` settings

Updating subject for release notes.

Actions #7

Updated by Jim Pingle 10 months ago

  • Affected Version set to 2.7.0
Actions

Also available in: Atom PDF