Squidguard Menu MISSING after 23.01 update
-
This is my first time posting here, please move my post if this isn't the right category.
Anyways, after waiting for quite some time, I tried to update our Netgate 6100.
Everything went smoothly, except with squidguard. The menu is missing (already did re-install but still no luck).
Below is the notification and error:
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193 Stack trace: #0 /usr/local/pkg/squidguard.inc(1047): convert_pfxml_to_sgxml_time(Array) #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml() #2 /etc/inc/pkg-utils.inc(691): require_once('/usr/local/pkg/...') #3 /etc/rc.start_packages(66): sync_package('squidGuard') #4 {main} thrown in /usr/local/pkg/squidguard.inc on line 1193 PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193 Stack trace: #0 /usr/local/pkg/squidguard.inc(1047): convert_pfxml_to_sgxml_time(Array) #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml() #2 /usr/local/www/pkg_edit.php(57): require_once('/usr/local/pkg/...') #3 {main} thrown in /usr/local/pkg/squidguard.inc on line 1193
Is there any fix to it? The squidguard seems to be working fine, but I can no longer make any changes to its configuration.
-
@forgekeeper Try to resave the Squid proxy config and also the reverse proxy settings even if you are not using it. After try to save the Squidguard settings again. I had missing area of configuration because something got bonked up and after the section in my Squid config for reverse proxy settings were flat missing a whole block of it and it requires it even if the reverse proxy was not in use. I had to resave reverse proxy settings as disabled just to get the PHP errors to stop doing uncaught issues.
-
Resave Squid and Squid Reverse Proxy but still, I can't see the Squidguard Menu under Services. Should I reinstall it after resaving the Squid and Reverse Proxy?
-
@forgekeeper yes give it a try.
-
@forgekeeper https://forum.netgate.com/topic/178036/23-01-squid-issue/15?_=1677719332904
This was the issue I had, I am sure something is Missing from the config in Squidguard because that is what is having the issue with uncaught errors. Mine was with Squid Proxy. See above, this seems similar, you need to delete the Squidguard config saved on your device and reinstall Squidguard I bet, after reapply the old working configuration prior to update
-
@jonathanlee Yup, I did resave the squid and reverse proxy config. Did the reinstall in squidguard (still showing that error). Went to squid and reverse proxy to do resave again. Checked the console (squidGuard is running), checked the Menu > Services > (no squidguard).
Also, same error. I think this has something to do with the PHP update and its compatibility. There is one ticket that I am monitoring now:
https://redmine.pfsense.org/issues/13978?tab=history -
-
@forgekeeper Dang it was worth a try. Sorry it did not fix your issue
-
This has been FIXED after updating to the latest version 23.05.