Project

General

Profile

Actions

Bug #10336

closed

fatal error on firewall_aliases_edit.php

Added by Manuel Piovan almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Urgent
Category:
Web Interface
Target version:
Start date:
03/11/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.x
Affected Architecture:
All

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

Actions #1

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]
Actions #2

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

Actions #3

Updated by Jim Pingle almost 5 years ago

  • Assignee set to Renato Botelho
  • Target version set to 2.5.0
  • Affected Architecture All added
Actions #4

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 :)

Actions #5

Updated by Jim Pingle almost 5 years ago

That wouldn't belong on a PR or change for this issue.

Actions #6

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

Actions #7

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
...
Actions

Also available in: Atom PDF