ERRO Squid Do Not Cache



  • Este report se deu depois da atualização do upgrade para 2.4.4 e atualização do squid para 0.4.44_4.
    Alguém se deparou com este falha ao adicionar domínios para não criar chache?

    Crash report begins.  Anonymous machine information:
    
    amd64
    11.2-RELEASE-p3
    FreeBSD 11.2-RELEASE-p3 #17 e6b497fa0a3(RELENG_2_4_4): Thu Sep 20 09:04:45 EDT 2018     root@buildbot3:/crossbuild/ce-244/obj/amd64/WvDslnYb/crossbuild/ce-244/pfSense/tmp/FreeBSD-src/sys/pfSense
    
    Crash report details:
    
    PHP Errors:
    [26-Sep-2018 12:41:27 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /usr/local/pkg/squid.inc:943
    Stack trace:
    #0 /usr/local/www/pkg_edit.php(134) : eval()'d code(1): squid_validate_cache(Array, Array)
    #1 /usr/local/www/pkg_edit.php(134): eval()
    #2 {main}
      thrown in /usr/local/pkg/squid.inc on line 943
    [26-Sep-2018 12:43:06 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /usr/local/pkg/squid.inc:943
    Stack trace:
    #0 /usr/local/www/pkg_edit.php(134) : eval()'d code(1): squid_validate_cache(Array, Array)
    #1 /usr/local/www/pkg_edit.php(134): eval()
    #2 {main}
      thrown in /usr/local/pkg/squid.inc on line 943
    [26-Sep-2018 12:52:28 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /usr/local/pkg/squid.inc:943
    Stack trace:
    #0 /usr/local/www/pkg_edit.php(134) : eval()'d code(1): squid_validate_cache(Array, Array)
    #1 /usr/local/www/pkg_edit.php(134): eval()
    #2 {main}
      thrown in /usr/local/pkg/squid.inc on line 943
    
    
    No FreeBSD crash data found.
    


  • @throberth said in ERRO Squid Do Not Cache:

    Substituir o split por explode na linha 943 como descrito ficara assim:
    antes:
    foreach (split("\n", $post['donotcache']) as $host) {
    depois:
    foreach (explode("\n", $post['donotcache']) as $host) {