Project

General

Profile

Actions

Bug #14741

open

PHP error in DNS Forwarder host overrides when the language is set to French

Added by Nicolas PISTER about 2 years ago. Updated 4 days ago.

Status:
Feedback
Priority:
Very High
Category:
DNS Forwarder
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
25.11
Release Notes:
Default
Affected Version:
2.7.x
Affected Architecture:

Description

A PHP error occur when a user try to add or modify Host Override in DNS Forwarder module

amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-REL

Crash report details:

PHP Errors:
[02-Sep-2023 11:55:24 Europe/Paris] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "p" in /usr/local/www/classes/Form/Input.class.php:127
Stack trace:
#0 /usr/local/www/classes/Form/Input.class.php(127): sprintf('Nom de domaine ...', '<br />')
#1 /usr/local/www/services_dnsmasq_edit.php(85): Form_Input->setHelp('Domain of the h...', '<br />')
#2 {main}
  thrown in /usr/local/www/classes/Form/Input.class.php on line 127
[02-Sep-2023 11:58:37 Europe/Paris] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "p" in /usr/local/www/classes/Form/Input.class.php:127
Stack trace:
#0 /usr/local/www/classes/Form/Input.class.php(127): sprintf('Nom de domaine ...', '<br />')
#1 /usr/local/www/services_dnsmasq_edit.php(85): Form_Input->setHelp('Domain of the h...', '<br />')
#2 {main}
  thrown in /usr/local/www/classes/Form/Input.class.php on line 127
[02-Sep-2023 11:58:46 Europe/Paris] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "p" in /usr/local/www/classes/Form/Input.class.php:127
Stack trace:
#0 /usr/local/www/classes/Form/Input.class.php(127): sprintf('Nom de domaine ...', '<br />')
#1 /usr/local/www/services_dnsmasq_edit.php(85): Form_Input->setHelp('Domain of the h...', '<br />')
#2 {main}
  thrown in /usr/local/www/classes/Form/Input.class.php on line 127

I think it come from a french translation file because when i use original language, everithing works.


Files

PHP_errors (2).log (384 Bytes) PHP_errors (2).log aleksei prokofiev, 10/24/2025 11:36 AM
Actions #1

Updated by Lev Prokofev about 2 years ago

Can confirm that bug

Tested on

23.05.1-RELEASE (amd64)
built on Wed Jun 28 03:57:27 UTC 2023
FreeBSD 14.0-CURRENT

Steps to reproduce:
at System=>General setup switch language to French

Go to System=>DNS Forwarder

try to add a host override entry.

[02-Sep-2023 13:59:26 Europe/Moscow] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "p" in /usr/local/www/classes/Form/Input.class.php:127
Stack trace:
#0 /usr/local/www/classes/Form/Input.class.php(127): sprintf('Nom de domaine ...', '<br />')
#1 /usr/local/www/services_dnsmasq_edit.php(85): Form_Input->setHelp('Domain of the h...', '<br />')
#2 {main}
  thrown in /usr/local/www/classes/Form/Input.class.php on line 127
Actions #2

Updated by Jordan G about 2 years ago

can confirm bug using above steps. spot checked various other languages and was unable to find this issue occurring on any other available language selections.

Actions #3

Updated by Jim Pingle about 2 years ago

  • Subject changed from Crash DNS Forwarder when add host to PHP error in DNS Forwarder host overrides when the language is set to French
Actions #4

Updated by aleksei prokofiev 11 days ago

Tested on
25.07.1-RELEASE (amd64)
built on Wed Aug 20 16:17:00 +04 2025
FreeBSD 15.0-CURRENT
Issue still persists

Actions #5

Updated by Christian McDonald 11 days ago

  • Status changed from New to In Progress
  • Assignee set to Christian McDonald
  • Target version set to 2.9.0
  • Plus Target Version set to 25.11
Actions #7

Updated by Christian McDonald 11 days ago

  • Status changed from In Progress to Feedback
Actions #8

Updated by Christian McDonald 11 days ago

  • % Done changed from 0 to 100
Actions #9

Updated by aleksei prokofiev 9 days ago

Applied patch in 25.07.1
Also tested on 25.11
25.11-BETA (amd64)
built on Mon Oct 6 9:00:00 MSK 2025
FreeBSD 15.0-PRERELEASE

The issue still persists

Actions #10

Updated by Christian McDonald 8 days ago

aleksei prokofiev wrote in #note-9:

Applied patch in 25.07.1
Also tested on 25.11
25.11-BETA (amd64)
built on Mon Oct 6 9:00:00 MSK 2025
FreeBSD 15.0-PRERELEASE

The issue still persists

This is a very old build. Please try latest build.

Actions #11

Updated by aleksei prokofiev 4 days ago

Re-tested on
25.11-BETA (amd64)
built on Tue Oct 28 18:38:00 UTC 2025
FreeBSD 16.0-CURRENT

Issue fixed

Actions

Also available in: Atom PDF