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 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Very High
Assignee:
-
Category:
DNS Forwarder
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
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.

Actions #1

Updated by Lev Prokofev 6 months 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 6 months 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 6 months 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

Also available in: Atom PDF