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

    Squid 0.4 beta on RC2

    pfSense Packages
    4
    5
    3.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
      motokochan
      last edited by

      I've encountered some problems in installing the Squid package (0.4 Beta) on pSense 1.0 RC2.

      After install, the following message repeats at the bottom of the page:

      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49

      At times, it also says line 505.

      Looking at the source code, the error happens at certain times in the install process:

      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 505
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 505
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 505
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 505
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 49
      
      

      Squid does appear to be working, but it can be hard to tell. Any known issues or workarounds for those errors?

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

        Sounds like leftover squid settings from a previous installation.

        You need to:

        1. Deinstall squid
        2. edit /cf/conf/config.xml and remove <squid>…</squid>
            NOTE: the dots means everything in between
        3. rm /tmp/config.cache
        4. Reinstall squid

        1 Reply Last reply Reply Quote 0
        • F
          flic
          last edited by

          @sullrich:

          Sounds like leftover squid settings from a previous installation.

          I had the exact same error on a completely virgin installation of RC2 and Squid 0.4

          1 Reply Last reply Reply Quote 0
          • J
            jeroen234
            last edited by

            uninstall squid
            upgrade to the latest version of rc2 i beleve its rc2g now
            install squid again

            1 Reply Last reply Reply Quote 0
            • F
              flic
              last edited by

              @jeroen234:

              uninstall squid
              upgrade to the latest version of rc2 i beleve its rc2g now
              install squid again

              I uninstalled squid, cleaned up cache and config.xml,  upgraded up to f (didn't find any g?) and reinstalled. Same errors I'm afraid.

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