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

SquidGuard: Invalid argument supplied for foreach() during boot

Scheduled Pinned Locked Moved pfSense Packages
5 Posts 2 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.
  • M
    mkuron
    last edited by Feb 4, 2009, 10:33 AM

    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 Feb 4, 2009, 10:58 AM

      Only with boot?

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • M
        mkuron
        last edited by Feb 4, 2009, 12:49 PM

        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 Feb 4, 2009, 2:17 PM

          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 Feb 5, 2009, 6:35 AM

            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
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received