Navigation

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

    SquidGuard for squid3 issue in tab:Groups.

    pfSense Packages
    2
    4
    1018
    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.
    • periko
      periko last edited by

      Hi.

      Since yesterday I have a issue with squidGuard:

      squidGuard-squid3 Network Management 1.4_4 pkg v.1.9.5

      I have re-install my system about 6 times, the error I have is in the tab: Groups, this is:

      Order Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_edit.php on line 567 
      Select the new position for this ACL item. ACLs are evaluated on a first-match source basis.
      Note:
      Search for a suitable ACL by field 'source' will occur before the first match. If you want to define an exception for some sources (IP) from the IP range, put them on first of the list.
      Example:
      ACL with single (or short range) source ip 10.0.0.15 must be placed before ACL with more large ip range 10.0.0.0/24.

      I cannot chose the order.

      I search and other people point this error, they request to re-install the app, xml, etc.
      I had follow each tip but won't work.

      This box is a neoware C10 1Ghz 1GB RAM CF 4GB.

      I was thinking that maybe was my burner, but the last thing I did was to install 2.0.3 and upgrade and the issue continue.

      The error point the file:

      /usr/local/www/pkg_edit.php on line 567

      The part of the code is this:

      case "select":
      $fieldname = $pkga['fieldname'];
      if (isset($pkga['multiple'])) {
            $multiple = 'multiple="multiple"';
        $items = explode(',', $value);
            $fieldname .= "[]";
            } else {
            $multiple = '';
            $items = array($value);
        }
        $size = ($pkga['size'] ? " size='{$pkga['size']}' " : "");
        $onchange = (isset($pkga['onchange']) ? "onchange="{$pkga['onchange']}"" : '');
        $input = "<select id="" . $pkga[" fieldname']="" .="" "'="" $multiple="" $size="" $onchange="" name="&quot;$fieldname<br">=====>>>> foreach ($pkga['options']['option'] as $opt) { <<<<<<<<<<<<<<<=====  $selected = (in_array($opt['value'], $items) ? 'selected="selected"' : '');  $input .= "\t<option value="&quot;{$opt['value']}&quot;" {$selected}="">{$opt['name']}</option>\n";    }  $input .= "</select>\n
      \n" . fixup_string($pkga['description']) . "\n";
        if(isset($pkga['advancedfield']) && isset($adv_filed_count)) {
            $js_array[] = $pkga['fieldname'];
            $advanced .= display_advanced_field($pkga['fieldname']).$input;
          $advanced .= "\n";
        }
        else
        echo $input;
      break;

      I'm not a programmer, if some have this app running will be great to compare his code with this one, hope could see if this is a bug or is my brain, thanks.

      I share the picture of the error.

      Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
      www.bajaopensolutions.com
      https://www.facebook.com/BajaOpenSolutions
      Quieres aprender PfSense, visita mi canal de youtube:
      https://www.youtube.com/c/PedroMorenoBOS

      1 Reply Last reply Reply Quote 0
      • periko
        periko last edited by

        Looks like this issues came from pfsense base, I install on other machine P4, squid2+squidguard and the issue is there.

        I was thinking that this was related to squidguard-squid3, but is the base system.

        Once u add the first ACL group the 2nd won't show this error.

        Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
        www.bajaopensolutions.com
        https://www.facebook.com/BajaOpenSolutions
        Quieres aprender PfSense, visita mi canal de youtube:
        https://www.youtube.com/c/PedroMorenoBOS

        1 Reply Last reply Reply Quote 0
        • marcelloc
          marcelloc last edited by

          does your list is empty?

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • periko
            periko last edited by

            Yes, what I see is that, I only see this message on a fresh installation, list empty.
            Once I add 1 and add the 2nd the message disappears.

            Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
            www.bajaopensolutions.com
            https://www.facebook.com/BajaOpenSolutions
            Quieres aprender PfSense, visita mi canal de youtube:
            https://www.youtube.com/c/PedroMorenoBOS

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