Bug #16063
closedPHP error after saving NTP settings with an interface selected
100%
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.
Updated by steven warner about 2 months ago
Update:
Issue occurs when editing the sole existing server and not adding a new one...
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.
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)
- Enable MIM
- Go to Services > NTP
- Select Localhost for
Interface
then clickSave
Updated by Marcos M about 2 months ago
- Assignee set to Marcos M
- Target version set to 25.03
- Affected Architecture All added
Updated by Marcos M about 2 months ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset pfsense:7573eafea9025f1a895886cf24d20fc5762c7b7d.
Updated by Lev Prokofev about 2 months ago
I was able to reproduce this on 24.11, the patch appears to fix it.
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
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