Bug #10336
closedfatal error on firewall_aliases_edit.php
0%
Description
if i try to insert a URL
and try to save
Fatal error: Uncaught Error: Call to undefined function idn_to_ascii() in /etc/inc/pfsense-utils.inc:2386 Stack trace: #0 /usr/local/www/firewall_aliases_edit.php(287): parse_aliases_file('/tmp/alias_impo...', 'url', 5000) #1 {main} thrown in /etc/inc/pfsense-utils.inc on line 2386 PHP ERROR: Type: 1, File: /etc/inc/pfsense-utils.inc, Line: 2386, Message: Uncaught Error: Call to undefined function idn_to_ascii() in /etc/inc/pfsense-utils.inc:2386 Stack trace: #0 /usr/local/www/firewall_aliases_edit.php(287): parse_aliases_file('/tmp/alias_impo...', 'url', 5000) #1 {main} thrown
Updated by Manuel Piovan almost 5 years ago
the function idn_to_asci is inside php-intl
this package need to be installed:
php73-intl: 7.3.15 [pfSense]
icu: 65.1,1 [pfSense]
Updated by Viktor Gurov almost 5 years ago
worked before: https://redmine.pfsense.org/issues/10321
it looks like php73-intl is removed from the last build and needs to be added back
Updated by Jim Pingle almost 5 years ago
- Assignee set to Renato Botelho
- Target version set to 2.5.0
- Affected Architecture All added
Updated by Manuel Piovan almost 5 years ago
if i can also say something about line 2384 ..
/* NOTE: fgetss() is not a typo RTFM before being smart */
it should not be inside a released file or maybe if you change to RTM would be more polite :)
Updated by Jim Pingle almost 5 years ago
That wouldn't belong on a PR or change for this issue.
Updated by Renato Botelho almost 5 years ago
Viktor Gurov wrote:
worked before: https://redmine.pfsense.org/issues/10321
it looks like php73-intl is removed from the last build and needs to be added back
I've added php-intl as a dependency of pfSense meta package on both 2.5.0 and 2.4.5
Updated by Viktor Gurov almost 5 years ago
- Status changed from New to Resolved
no such error on 2.5.0.a.20200317.0046
# pkg info php73-intl php73-intl-7.3.15 Name : php73-intl Version : 7.3.15 ...