• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

23.05 on SG-1100 - Bulk Import of Aliases Bricking Appliance

General pfSense Questions
4
5
434
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dedskwirl
    last edited by Jun 20, 2023, 9:56 PM

    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} thrown

    That'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.

    1 Reply Last reply Reply Quote 0
    • N
      NOCling
      last edited by Jun 21, 2023, 6:04 AM

      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.

      Netgate 6100 & Netgate 2100

      1 Reply Last reply Reply Quote 0
      • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Jun 21, 2023, 12:26 PM
      • S
        stephenw10 Netgate Administrator
        last edited by Jun 21, 2023, 12:55 PM

        Yup, fixed in the recommended patch there.

        For reference: https://redmine.pfsense.org/issues/14412

        1 Reply Last reply Reply Quote 0
        • D
          dedskwirl
          last edited by Jun 21, 2023, 7:18 PM

          Thank you all!

          S 1 Reply Last reply Jun 21, 2023, 8:57 PM Reply Quote 0
          • S
            SteveITS Galactic Empire @dedskwirl
            last edited by Jun 21, 2023, 8:57 PM

            @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"

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.