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

    I get error in /usr/local/pkg/squidguard.inc on line 1492

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 3 Posters 2.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.
    • A Offline
      Azamat
      last edited by

      Hello everybody,
      I have Pfsense Version 2.0.1-RELEASE. Lately,  when I want to open 'Proxy filter', I have there is an error "Parse error: syntax error, unexpected ':' in /usr/local/pkg/squidguard.inc on line 1492."
      What is it? somebody seen this error?
      Thank you.

      1 Reply Last reply Reply Quote 0
      • J Offline
        javerleo
        last edited by

        Hello.

        I get the same error. After that you are not even able to uninstall the package. The problem is you are using a new version of Squidguard with an old version of pfsense (I use 2.0.3). The new version of squidguard.inc uses ternary operator with the new syntax, which is not compatible with PHP 5.2:

        http://stackoverflow.com/questions/2153180/what-is-in-php-5-3

        So the solution would be to locate and install an old version of the Squidguard package, but it seems it's not possible:

        https://forum.pfsense.org/index.php?topic=88685.0

        –-----------
        God is my best friend

        1 Reply Last reply Reply Quote 0
        • KOMK Offline
          KOM
          last edited by

          A better solution would be to upgrade your pfSense and not stay with an ancient version that has known security vulnerabilities.

          1 Reply Last reply Reply Quote 0
          • J Offline
            javerleo
            last edited by

            @KOM:

            A better solution would be to upgrade your pfSense and not stay with an ancient version that has known security vulnerabilities.

            Please, show me how to get Squid + Squidguard + multi WAN working together and I will happily upgrade pfSense.

            –-----------
            God is my best friend

            1 Reply Last reply Reply Quote 0
            • A Offline
              Azamat
              last edited by

              @javerleo:

              @KOM:

              A better solution would be to upgrade your pfSense and not stay with an ancient version that has known security vulnerabilities.

              Please, show me how to get Squid + Squidguard + multi WAN working together and I will happily upgrade pfSense.

              You have not yet solved the problem? What did you try?

              1 Reply Last reply Reply Quote 0
              • J Offline
                javerleo
                last edited by

                There is no easy solution for this. Everytime you install a package the new version is fetched from repository, so if the new package has compatibility issues with the installed pfSense version you will end up with a broken installation. A possible workaround would be to clone the installation from a working system with the old version of pfSense and packages, but I haven't tried that so far.

                Good luck.

                –-----------
                God is my best friend

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