Bug #14033
closedPHP error in NTP Server if the configuration contains a partial section of old ``openntpd`` settings
100%
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
Updated by FCS FCS almost 2 years ago
20230226 - Fixed by a reset to "Factory Defaults".
Updated by Jim Pingle almost 2 years 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.
Updated by Jim Pingle almost 2 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset 82364513c64f0233617a356b62a461b6eba253f3.
Updated by Jordan G over 1 year ago
no issues using or configuring NTP on aarch64 running 23.05.a.20230407.0116
Updated by Jim Pingle over 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.