Import Aliases PHP crash!
-
Hey folks,
Driving me crazy, I've a very long list of IP's/Subnets to import.
When attempting to even add a basic one line it crashes out.Latest build of pfsense+ 23.01-RELEASE (amd64)
Bombs out:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/firewall_aliases_import.php:88 Stack trace: #0 {main} thrown in /usr/local/www/firewall_aliases_import.php on line 88 PHP ERROR: Type: 1, File: /usr/local/www/firewall_aliases_import.php, Line: 88, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/firewall_aliases_import.php:88 Stack trace: #0 {main} thrown
Huge show stopper. Anyone else having similar issues?
Here's super basic test.. nope, doesn't work. -
I've tested with this :
and I hit Save.
Then I saw :
I also tried to 'import' 1.1.1.1 - no issues neither.
-
Well quite, that's the desired effect - clearly not the case for me!
-
Someone else reported this last week and I could reproduce it here:
https://redmine.pfsense.org/issues/14013I committed a fix last week as well, you can install the System Patches package and then create an entry for
290b3461bb816e9fc161568e499d43b24542cb9f
to apply the fix. -
@jimp Bravo - You sir, are a STAR! thanks so much.
I did end up exporting the alias backup.. then copy/pasting the entries. But I'm thankful you've fixed it now. Makes life easier going forward.
:-)