Project

General

Profile

Actions

Bug #16063

closed

PHP error after saving NTP settings with an interface selected

Added by steven warner about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
NTPD
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
25.03
Release Notes:
Default
Affected Version:
2.8.0
Affected Architecture:
All

Description

System had one NTP server defined. Entered info for another NTP server by ip address, and selected save.
Gets "50x Error" displaying Services>NTP not - needs Boot Environment restore to clear error.

Crash report begins. Anonymous machine information:

amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_11-n256407-1bbb3194162: Fri Nov 22 05:08:46 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/obj/amd64/AKWlAIiM/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/sources/FreeBS

Crash report details:

PHP Errors:
[24-Feb-2025 14:53:05 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /usr/local/www/services_ntpd.php:54
Stack trace:
#0 /usr/local/www/services_ntpd.php(54): explode()
#1 {main}
thrown in /usr/local/www/services_ntpd.php on line 54

No FreeBSD crash data found.

Actions #1

Updated by steven warner about 2 months ago

Update:
Issue occurs when editing the sole existing server and not adding a new one...

Actions #2

Updated by steven warner about 2 months ago

Ok, sorry for the update but - easier steps to repro
Works OK first time displaying Services>NTP. Do it again and 50x forever until reboot.
Issue goes away - if no server selected in the 'listen on' list.
After selecting a single server, '50x'. occurs.

Actions #3

Updated by Marcos M about 2 months ago

  • Subject changed from Receive 50x Error after adding new NTP Server to PHP error after saving NTP settings with an interface selected
  • Category changed from Services to Multi-Instance Management
  • Status changed from New to Confirmed
  • Affected Architecture deleted (amd64)
To reproduce:
  1. Enable MIM
  2. Go to Services > NTP
  3. Select Localhost for Interface then click Save
Actions #4

Updated by Marcos M about 2 months ago

  • Assignee set to Marcos M
  • Target version set to 25.03
  • Affected Architecture All added
Actions #5

Updated by Marcos M about 2 months ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #6

Updated by Lev Prokofev about 2 months ago

I was able to reproduce this on 24.11, the patch appears to fix it.

Actions #7

Updated by Jordan G about 2 months ago

with patch applied changing ntp can be changed between single or multiple server(s) without issue. looks good from here

Actions #8

Updated by Marcos M about 1 month ago

  • Status changed from Feedback to Resolved
  • Target version changed from 25.03 to 2.8.0
  • Affected Plus Version deleted (24.11)
  • Plus Target Version set to 25.03
  • Project changed from pfSense Plus to pfSense
  • Category changed from Multi-Instance Management to NTPD
  • Affected Version set to 2.8.0
Actions

Also available in: Atom PDF