23.05 on SG-1100 - Bulk Import of Aliases Bricking Appliance
-
Linking here for visibility: https://forum.netgate.com/topic/180957/possible-bug-on-23-05-bulk-import-of-aliases-causes-full-brick-of-pfsense
I was attempting to do a bulk import of multiple FQDNs into a single Alias. Immediately upon hitting "Save" I received the following message on my screen. (Line breaks added in to make reading easier.)
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/util.inc:2053
Stack trace: #0 /etc/inc/config.gui.inc(56): alias_make_table()
#1 /etc/inc/auth.inc(34): require_once('/etc/inc/config...')
#2 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...')
#3 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...')
#4 /usr/local/www/firewall_aliases.php(35): require_once('/usr/local/www/...')
#5 {main} thrown in /etc/inc/util.inc on line 2053
PHP ERROR: Type: 1, File: /etc/inc/util.inc,
Line: 2053, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/util.inc:2053
Stack trace: #0 /etc/inc/config.gui.inc(56): alias_make_table()
#1 /etc/inc/auth.inc(34): require_once('/etc/inc/config...')
#2 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...')
#3 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...')
#4 /usr/local/www/firewall_aliases.php(35): require_once('/usr/local/www/...')
#5 {main} thrownThat's all I was able to copy from the webpage. Rebooting didn't change anything. Via console I was unable to revert to a previous config, reboot, reset webconfigurator or anything. My only option was a factory reset and start from scratch.
This happened multiple times both with FQDN and IPs while attempting to Bulk Import. Adding individual FQDNs one-by-one worked fine.
-
You need the Package System_Patches, go for it and then go to System Patches and install all recommended as.
The alias Bulk import Patch is one of it. -
-
Yup, fixed in the recommended patch there.
For reference: https://redmine.pfsense.org/issues/14412
-
Thank you all!
-
@dedskwirl also, apparently a .1 upcoming:
https://docs.netgate.com/pfsense/en/latest/releases/23-05-1.html"Fixed: PHP error when attempting to bulk import Alias content #14412"