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 over 1 year ago. Updated over 1 year 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

Also available in: Atom PDF