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.
Plus Target Version:
25.03
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.
Update:
Issue occurs when editing the sole existing server and not adding a new one...
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.
- 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:
- Enable MIM
- Go to Services > NTP
- Select Localhost for
Interface
then click Save
- Assignee set to Marcos M
- Target version set to 25.03
- Affected Architecture All added
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
I was able to reproduce this on 24.11, the patch appears to fix it.
with patch applied changing ntp can be changed between single or multiple server(s) without issue. looks good from here
- 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
Also available in: Atom
PDF