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

    Possible bug in "Group Manager"

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    7 Posts 4 Posters 2.0k 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.
    • S
      splmachine
      last edited by

      I believe there maybe a tiny bug in the group manager. I'm on the latest 2.1-BETA0 (i386) (built on Fri Aug 17), I get the below error.

      To recreate go to:

      System > User Manager > Groups > Add Group button

      Error displayed within Not Members and Members boxes:

      "array null given in /usr/local/www/system_groupmanager.php on line 296 Warning: in_array() expects parameter 2 to be array"

      There maybe more to the error but it's jumbled for me…

      Thanks

      1 Reply Last reply Reply Quote 0
      • B
        bkraptor
        last edited by

        I am running 2.1-BETA0 (i386) built on Mon Aug 6 09:38:58 EDT 2012 and this is not happening for me.

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

          It's not happening to me either but I can see how it could in the code, added a safety check before that bit would run so it can't result in an error.

          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
          • S
            splmachine
            last edited by

            I only started with pfsense a few days ago so maybe it wouldn't be something others ran into if they started from an earlier build. Thanks though for looking into it!  :)

            1 Reply Last reply Reply Quote 0
            • S
              splmachine
              last edited by

              I think I spoke too soon…. I checked after upgrading to the latest 2.1 version last night and instead of seeing the error in both members and non-members, NOW it's only in the Members section. The part of the error in that field I can see is:

              
              be array, null given in /usr/local/www/system_groupmanager.php on line 322 Warning: in_array() expects parameter 2 to be array, null given in /usr/local/www/system_groupmanager.php
              
              

              Again, this WAS happening in both fields but I see it's still an issue in Members field.

              Thanks and let me know if screenshots necessary

              1 Reply Last reply Reply Quote 0
              • B
                bardelot
                last edited by

                The safety check was added to the first field only. I just made a patch that adds it to the second field as well.

                1 Reply Last reply Reply Quote 0
                • S
                  splmachine
                  last edited by

                  Thank you for taking the time to investigate and patch. You guys are great!

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