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

23.01 Squid issue

Cache/Proxy
8
128
34.5k
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.
  • J
    JonathanLee @stephenw10
    last edited by JonathanLee Feb 19, 2023, 2:50 AM Feb 19, 2023, 2:25 AM

    @stephenw10 I just use Squid, this is when I save the general page for 🐙 and this error occurs. It works but I cannot make any changes currently. I have Squid Reverse proxy disabled.

    Make sure to upvote

    1 Reply Last reply Reply Quote 0
    • J
      JonathanLee @stephenw10
      last edited by JonathanLee Feb 19, 2023, 2:28 AM Feb 19, 2023, 2:27 AM

      @stephenw10

      login-to-view

      That section is blank, I can check the actual file hold on.

      Make sure to upvote

      J 1 Reply Last reply Feb 19, 2023, 2:28 AM Reply Quote 0
      • J
        JonathanLee @JonathanLee
        last edited by Feb 19, 2023, 2:28 AM

        @jonathanlee

        login-to-view

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Feb 19, 2023, 3:20 AM

          Ok, go to the Reverse Squid setting page and save it without making any changes. That will create the reverse squid config section and you should then be able to make Squid changes.

          J A H P 4 Replies Last reply Feb 19, 2023, 3:35 AM Reply Quote 2
          • J
            JonathanLee @stephenw10
            last edited by Feb 19, 2023, 3:35 AM

            @stephenw10 That fixed it!!! thanks, TAC wants me to do a full reinstall of 23.01, I wonder if I have to do it now.

            Make sure to upvote

            M S 2 Replies Last reply Feb 19, 2023, 3:40 AM Reply Quote 1
            • M
              michmoor LAYER 8 Rebel Alliance @JonathanLee
              last edited by Feb 19, 2023, 3:40 AM

              @jonathanlee
              @stephenw10 you are awesome !!

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              1 Reply Last reply Reply Quote 1
              • S
                stephenw10 Netgate Administrator @JonathanLee
                last edited by Feb 19, 2023, 4:24 PM

                @jonathanlee said in 23.01 Squid issue:

                I wonder if I have to do it now.

                Probably not. That's an actual php bug, you would hit that on a clean install just the same.

                J 1 Reply Last reply Feb 19, 2023, 4:40 PM Reply Quote 0
                • J
                  JonathanLee @stephenw10
                  last edited by Feb 19, 2023, 4:40 PM

                  @stephenw10 I did a full fresh USB install with formatting the old firewall first and that error did not return. It was something that went wrong with the upgrade in place for me.

                  Make sure to upvote

                  1 Reply Last reply Reply Quote 0
                  • J JonathanLee referenced this topic on Feb 19, 2023, 5:23 PM
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Feb 19, 2023, 7:03 PM

                    And you imported the config that didn't have an reverse squid tags present?

                    J 1 Reply Last reply Feb 19, 2023, 7:07 PM Reply Quote 0
                    • J
                      JonathanLee @stephenw10
                      last edited by Feb 19, 2023, 7:07 PM

                      @stephenw10 yes, this was done with a imported the config, again this was the config after the resave of the reverse proxy being disabled.

                      Make sure to upvote

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 19, 2023, 7:09 PM

                        Ah, Ok that would have had the Reverse Squid tags in it then. So, yes, that's what I would expect.

                        1 Reply Last reply Reply Quote 1
                        • J JonathanLee referenced this topic on Mar 2, 2023, 1:12 AM
                        • A
                          Amenophisphp @stephenw10
                          last edited by Mar 2, 2023, 7:58 AM

                          @stephenw10 Thanks a lot

                          1 Reply Last reply Reply Quote 0
                          • H
                            hugoeyng @stephenw10
                            last edited by Mar 13, 2023, 1:15 PM

                            @stephenw10 Hello.

                            I did as you said, but did not work.

                            Upgrading pfSense-pkg-squidGuard...
                            Updating pfSense-core repository catalogue...
                            pfSense-core repository is up to date.
                            Updating pfSense repository catalogue...
                            pfSense repository is up to date.
                            All repositories are up to date.
                            Checking integrity... done (0 conflicting)
                            The following 1 package(s) will be affected (of 0 checked):

                            Installed packages to be REINSTALLED:
                            pfSense-pkg-squidGuard-1.16.18_20 [pfSense]

                            Number of packages to be reinstalled: 1
                            [1/1] Reinstalling pfSense-pkg-squidGuard-1.16.18_20...
                            [1/1] Extracting pfSense-pkg-squidGuard-1.16.18_20: .......... done
                            Removing squidGuard components...
                            Menu items... done.
                            Services... done.
                            Loading package instructions...

                            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(1068): require_once('/usr/local/pkg/...')
                            #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                            #4 {main}
                            thrown in /usr/local/pkg/squidguard.inc on line 1193
                            PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1193, Message: 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(1068): require_once('/usr/local/pkg/...')
                            #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                            #4 {main}
                            thrownpkg-static: DEINSTALL script failed
                            Saving updated package information...
                            overwrite!
                            Loading package configuration... done.
                            Configuring package components...
                            Loading package instructions...

                            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(868): require_once('/usr/local/pkg/...')
                            #3 /etc/rc.packages(76): install_package_xml('squidGuard')
                            #4 {main}
                            thrown in /usr/local/pkg/squidguard.inc on line 1193
                            PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1193, Message: 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(868): require_once('/usr/local/pkg/...')
                            #3 /etc/rc.packages(76): install_package_xml('squidGuard')
                            #4 {main}
                            thrownpkg-static: POST-INSTALL script failed

                            Cleaning up cache... done.
                            Success

                            I love pfSense!

                            Hugo Eyng
                            Datamais Sistemas

                            S 1 Reply Last reply Mar 13, 2023, 2:06 PM Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator @hugoeyng
                              last edited by Mar 13, 2023, 2:06 PM

                              That's a different error. It's in Squidguard not squid: /usr/local/pkg/squidguard.inc:1193

                              I added the variation you're seeing to the open bug for this:
                              https://redmine.pfsense.org/issues/13978

                              Steve

                              1 Reply Last reply Reply Quote 1
                              • P
                                psUser @stephenw10
                                last edited by Mar 20, 2023, 9:11 AM

                                @stephenw10
                                didnt help

                                Ive tried it today, but still the same error

                                PHP ERROR: Type: 1, File: /usr/local/pkg/squid_reverse.inc, Line: 414, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squid_reverse.inc:414
                                Stack trace:
                                #0 /usr/local/pkg/squid.inc(751): squid_reverse_enabled()
                                #1 /usr/local/www/pkg_edit.php(137) : eval()'d code(1): squid_validate_general(Array, Array)
                                #2 /usr/local/www/pkg_edit.php(137): eval()
                                #3 {main}
                                thrown @ 2023-03-20 09:49:44

                                1 Reply Last reply Reply Quote 1
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Mar 20, 2023, 12:13 PM

                                  Did it create the reverse squid config section i your config file?

                                  P 2 Replies Last reply Mar 20, 2023, 2:16 PM Reply Quote 0
                                  • P
                                    psUser @stephenw10
                                    last edited by psUser Mar 20, 2023, 2:21 PM Mar 20, 2023, 2:16 PM

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      psUser @stephenw10
                                      last edited by Mar 20, 2023, 2:20 PM

                                      @stephenw10

                                      # Always allow localhost connections
                                      http_access allow localhost
                                      
                                      request_body_max_size 0 KB
                                      delay_pools 1
                                      delay_class 1 2
                                      delay_parameters 1 -1/-1 -1/-1
                                      delay_initial_bucket_level 100
                                      delay_access 1 allow allsrc
                                      
                                      # Reverse Proxy settings
                                      
                                      
                                      # Custom options before auth
                                      
                                      
                                      # Set YouTube safesearch restriction
                                      (..)
                                      request_header_access YouTube-Restrict deny all
                                      request_header_add YouTube-Restrict none youtubedst
                                      # Setup allowed ACLs
                                      # Allow local network(s) on interface(s)
                                      http_access allow allowed_subnets
                                      http_access allow localnet
                                      # Default block all to be sure
                                      http_access deny allsrc
                                      
                                      

                                      I see something liek that [ this is exactly the end of that config file : /usr/local/etc/squid/squid.conf

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Mar 20, 2023, 2:21 PM

                                        No, I mean in the main pfSense config file (/cfconf/config.xml) did it create a set of tags: <squidreversegeneral>
                                        The lack of that config section is what causes that error.

                                        Steve

                                        P 1 Reply Last reply Mar 20, 2023, 2:23 PM Reply Quote 0
                                        • P
                                          psUser @stephenw10
                                          last edited by Mar 20, 2023, 2:23 PM

                                          @stephenw10

                                                         </patches>
                                                         <squidreversegeneral></squidreversegeneral>
                                                         <ntopng>
                                                                 <config>
                                          
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.