Navigation

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

    SquidGuard: Invalid argument supplied for foreach() during boot

    pfSense Packages
    2
    5
    1676
    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
      mkuron last edited by

      When booting up my pfSense machine, I'm getting several "Warning: Invalid argument supplied for foreach() in /usr/local/pkg/squidguard.inc on line xxx" errors. The lines are: 410, 456, 472, 551, 562, and 577. All of these lines are inside a foreach loop:```
      foreach($pkg['fields']['field'] as $field) {

      It doesn't seem like this causes any problems, though I would still like to know what causes this problem.
      1 Reply Last reply Reply Quote 0
      • D
        dvserg last edited by

        Only with boot?

        1 Reply Last reply Reply Quote 0
        • M
          mkuron last edited by

          Apparently - I've not seen the error anywhere in the logs or on the web interface. I've looked through squidguard.inc and to me, it seems like moste of these foreach loops should only be used by the web interface - so I wonder what is causing this error to appear during bootup.
          I've attached a screen capture of the messages that appear at the end of the bootup process.


          1 Reply Last reply Reply Quote 0
          • D
            dvserg last edited by

            Hehe :D
            Thanks, i  look this bug.

            1 Reply Last reply Reply Quote 0
            • M
              mkuron last edited by

              Seems like it's gone now - I upgraded to the latest version of the squidGuard package and I am no longer getting these erros.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Products

              • Platform Overview
              • TNSR
              • pfSense
              • Appliances

              Services

              • Training
              • Professional Services

              Support

              • Subscription Plans
              • Contact Support
              • Product Lifecycle
              • Documentation

              News

              • Media Coverage
              • Press
              • Events

              Resources

              • Blog
              • FAQ
              • Find a Partner
              • Resource Library
              • Security Information

              Company

              • About Us
              • Careers
              • Partners
              • Contact Us
              • Legal
              Our Mission

              We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

              Subscribe to our Newsletter

              Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

              © 2021 Rubicon Communications, LLC | Privacy Policy