PHP ERRO IN SQUIDGUARD UPDATE PFSENSE 2.6 -> 2.7
-
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-RELCrash 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 1850No FreeBSD crash data found.
-
@GDSF Same problem here, until now no solution, change to internal error to avoid pfsense crash
-
@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.
-
-
@GDSF Did u uninstall the package before the update?
-
@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
-
@GDSF I have been using squid since 2.7-development, is solid on my side.
I would suggest fresh installation, regards!!! -
@periko but do you use squid guard too?
-
@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.
-
@periko I understand, for now I'm using squid alone just as a proxy to have access history