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

    Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 1.1k 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.
    • C
      cubits
      last edited by

      PHP_errors.zip After installing all squid packages, I get thie error:

      Crash report begins. Anonymous machine information:

      amd64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS

      Crash report details:

      PHP Errors:
      [29-Mar-2023 16:33:53 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
      Stack trace:
      #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(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 1124
      [29-Mar-2023 16:35:37 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
      Stack trace:
      #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(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 1124

      No FreeBSD crash data found.
      [PHP_errors.log](Invalid file type. Allowed types are: .png, .jpg, .bmp, .txt, .gif, .xls, .gz, .zip, .pcap, .pcapng, .7z, .xml, .jpeg, .diff, .patch, .tgz, .tar, .0, .cap) [PHP_errors (1).log](Invalid file type. Allowed types are: .png, .jpg, .bmp, .txt, .gif, .xls, .gz, .zip, .pcap, .pcapng, .7z, .xml, .jpeg, .diff, .patch, .tgz, .tar, .0, .cap)

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        @cubits said in Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124:

        squidguard.inc:1124

        That is likely a missing config option. Probably a variation of this: https://redmine.pfsense.org/issues/13978

        Steve

        1 Reply Last reply Reply Quote 0
        • jimpJ jimp moved this topic from General pfSense Questions on
        • C
          cubits
          last edited by

          I still get this. Is there any solution for it?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Try setting a file extension in the field there even if you're not using that.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.