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

    SquidGuard: Invalid argument supplied for foreach() during boot

    pfSense Packages
    2
    5
    2.0k
    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.

      Software: pfSense 1.2.2-RELEASE
      Hardware: HP Workstation xw6000 (2x Xeon 2,8 GHz, 2GB RAM, 36 GB SCSI HDD)
      NICs: LAN: bge0, WAN: xl0, OPT1(WLAN): sis0
      Packages: squid, squidGuard

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

        Only with boot?

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        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.

          IMG_0001.jpg
          IMG_0001.jpg_thumb

          Software: pfSense 1.2.2-RELEASE
          Hardware: HP Workstation xw6000 (2x Xeon 2,8 GHz, 2GB RAM, 36 GB SCSI HDD)
          NICs: LAN: bge0, WAN: xl0, OPT1(WLAN): sis0
          Packages: squid, squidGuard

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

            Hehe :D
            Thanks, i  look this bug.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            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.

              Software: pfSense 1.2.2-RELEASE
              Hardware: HP Workstation xw6000 (2x Xeon 2,8 GHz, 2GB RAM, 36 GB SCSI HDD)
              NICs: LAN: bge0, WAN: xl0, OPT1(WLAN): sis0
              Packages: squid, squidGuard

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