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

    Cannot access offset of type string on string in /etc/inc/filter.inc

    Scheduled Pinned Locked Moved Plus 23.05 Development Snapshots (Retired)
    4 Posts 2 Posters 1.1k Views
    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.
    • M
      milindhvijay
      last edited by

      Upon opening Firewall->Rules:

      I encountered the following fatal error:

      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099 PHP ERROR: Type: 1, File: /etc/inc/filter.inc, Line: 5099, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown

      Here's the crash report details:

      Crash report begins. Anonymous machine information:

      amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #1 plus-devel-main-n256087-b483c4a1074: Tue May 2 06:33:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/obj/amd64/fsFOb4nc/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/sources/FreeBS

      PHP Errors: [03-May-2023 00:43:17 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099 [03-May-2023 00:43:46 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099

      alt text

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That looks like it would be from something in rule separators. Can you check in your config.xml file and see what is present in terms of separator config/tags?

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          I was able to reproduce it (though I had to hand edit a bad entry into my config.xml)

          https://redmine.pfsense.org/issues/14338

          Fix is already committed and will be the next snapshots that we put out.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 5
          • M
            milindhvijay
            last edited by

            Thanks. Fixed on new snapshot.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.