Importing Aliases Causes Fatal Error
-
Hey all,
I was trying to copy a list of URL host aliases from one 6100 to another. I therefore used the "Export to file" option on the source device and imported into the destination device.
Now the webGUI is only showing:
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/index.php(46): 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/index.php(46): require_once('/usr/local/www/...') #5 {main} thrown
I've tested from several browsers and also tried appending a specific .php file to the URL but every single page is now borked.
Assume the only method to fix is to connect to console and revert config history?
Thanks in advance
-
-
@adeparker or try removing the "bad" section from the config file:
https://forum.netgate.com/topic/180957/possible-bug-on-23-05-bulk-import-of-aliases-causes-full-brick-of-pfsense/7