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



  • 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.



  • 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



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



  • @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.



  • @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?



  • 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.