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

PHP ERRO IN SQUIDGUARD UPDATE PFSENSE 2.6 -> 2.7

Scheduled Pinned Locked Moved Cache/Proxy
9 Posts 3 Posters 976 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.
  • G
    GDSF
    last edited by Jul 5, 2023, 4:18 AM

    after installing the pfsense update, squidguard displays this error:

    Crash report begins. Anonymous machine information:

    amd64
    14.0-CURRENT
    FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-REL

    Crash report details:

    PHP Errors:
    [05-Jul-2023 01:11:57 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /usr/local/pkg/squidguard_configurator.inc:1850
    Stack trace:
    #0 /usr/local/pkg/squidguard_configurator.inc(1850): implode(' ', 'Valid URL expec...')
    #1 /usr/local/pkg/squidguard_configurator.inc(1449): sg_check_dest(Array, Array)
    #2 /usr/local/pkg/squidguard_configurator.inc(864): sg_check_config_data('')
    #3 /usr/local/pkg/squidguard_configurator.inc(392): sg_create_config()
    #4 /usr/local/pkg/squidguard.inc(924): sg_reconfigure()
    #5 /etc/inc/pkg-utils.inc(775) : eval()'d code(1): squidguard_install_command()
    #6 /etc/inc/pkg-utils.inc(775): eval()
    #7 /etc/inc/pkg-utils.inc(893): eval_once('squidguard_inst...')
    #8 /etc/rc.packages(76): install_package_xml('squidGuard')
    #9 {main}
    thrown in /usr/local/pkg/squidguard_configurator.inc on line 1850
    [05-Jul-2023 01:12:40 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /usr/local/pkg/squidguard_configurator.inc:1850
    Stack trace:
    #0 /usr/local/pkg/squidguard_configurator.inc(1850): implode(' ', 'Valid URL expec...')
    #1 /usr/local/pkg/squidguard_configurator.inc(1449): sg_check_dest(Array, Array)
    #2 /usr/local/pkg/squidguard_configurator.inc(864): sg_check_config_data('')
    #3 /usr/local/pkg/squidguard_configurator.inc(392): sg_create_config()
    #4 /usr/local/pkg/squidguard.inc(327): sg_reconfigure()
    #5 /etc/inc/pkg-utils.inc(709) : eval()'d code(1): squidguard_resync()
    #6 /etc/inc/pkg-utils.inc(709): eval()
    #7 /etc/rc.start_packages(66): sync_package('squidGuard')
    #8 {main}
    thrown in /usr/local/pkg/squidguard_configurator.inc on line 1850

    No FreeBSD crash data found.

    I P 2 Replies Last reply Jul 6, 2023, 3:14 AM Reply Quote 1
    • I
      Ivart @GDSF
      last edited by Jul 6, 2023, 3:14 AM

      @GDSF Same problem here, until now no solution, change to internal error to avoid pfsense crash

      G 1 Reply Last reply Jul 6, 2023, 12:52 PM Reply Quote 1
      • G
        GDSF @Ivart
        last edited by Jul 6, 2023, 12:52 PM

        @Ivart I've tried everything.

        • I already went back to 2.6, updated all the packages and then updated to 2.7 and it didn't work.

        • I already went back to 2.6 and uninstalled squidguard so that when I upgrade to 2.7 I installed it cleanly and it didn't work either.

        • I've tried to do a clean install of 2.7 but the problem persists.

        • I've already tried installing patches that I found from other people with similar errors on redmine, reddit, freebsd forums and none worked.

        what's left for us is to go back to 2.6 and wait to update squidguard or get another package, because I saw a netgate moderator saying that squidguard seemed to be abandoned and for now. they don't think about removing squidguard from the official repositories so far... but we don't know how long this measure will last.

        1 Reply Last reply Reply Quote 0
        • P
          periko @GDSF
          last edited by Jul 7, 2023, 6:49 AM

          @GDSF Did u uninstall the package before the update?

          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

          G 1 Reply Last reply Jul 7, 2023, 3:05 PM Reply Quote 0
          • G
            GDSF @periko
            last edited by Jul 7, 2023, 3:05 PM

            @periko Yes, I uninstalled it before installing 2.7 and it still didn't work, I believe it still doesn't work in this version. we should wait more

            P 1 Reply Last reply Jul 8, 2023, 4:45 AM Reply Quote 0
            • P
              periko @GDSF
              last edited by Jul 8, 2023, 4:45 AM

              @GDSF I have been using squid since 2.7-development, is solid on my side.
              I would suggest fresh installation, regards!!!

              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

              G 1 Reply Last reply Jul 8, 2023, 5:25 AM Reply Quote 0
              • G
                GDSF @periko
                last edited by Jul 8, 2023, 5:25 AM

                @periko but do you use squid guard too?

                P 1 Reply Last reply Jul 8, 2023, 5:08 PM Reply Quote 0
                • P
                  periko @GDSF
                  last edited by Jul 8, 2023, 5:08 PM

                  @GDSF Yes, is a must, working squid alone is more complex to block domains, with SG at least u download the DB and start with a bunch of domains ready to use block or allow.

                  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

                  G 1 Reply Last reply Jul 12, 2023, 5:12 PM Reply Quote 0
                  • G
                    GDSF @periko
                    last edited by Jul 12, 2023, 5:12 PM

                    @periko I understand, for now I'm using squid alone just as a proxy to have access history

                    1 Reply Last reply Reply Quote 0
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received