Bug #13641
closedPHP Error: squid.inc:852
0%
Description
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/local/pkg/squid.inc on line 852
Tested:
23.01-DEVELOPMENT (arm64) built on Tue Nov 08 16:16:38 UTC 2022 FreeBSD 14.0-CURRENT
Updated by Reid Linnemann about 2 years ago
This appears to perhaps have been generated post php upgrade and pre pfSense-pkg-squid upgrade, as I don't see any lines in the current source that could be interpreted as curly brace offset indexing.
Updated by Azamat Khakimyanov about 2 years ago
on 23.01-DEVELOPMENT (built on Fri Nov 11 06:05:57 UTC 2022) when I tried to install Squid I got
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squid.inc:1610
Stack trace:
#0 /usr/local/pkg/squid.inc(2273): squid_resync_cache()
#1 /etc/inc/pkg-utils.inc(787) : eval()'d code(1): squid_resync()
#2 /etc/inc/pkg-utils.inc(787): eval()
#3 /etc/inc/pkg-utils.inc(912): eval_once('squid_resync();')
#4 /etc/rc.packages(76): install_package_xml('squid')
#5 {main}
thrown in /usr/local/pkg/squid.inc on line 1610
PHP ERROR: Type: 1, File: /usr/local/pkg/squid.inc, Line: 1610, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squid.inc:1610
Stack trace:
#0 /usr/local/pkg/squid.inc(2273): squid_resync_cache()
#1 /etc/inc/pkg-utils.inc(787) : eval()'d code(1): squid_resync()
#2 /etc/inc/pkg-utils.inc(787): eval()
#3 /etc/inc/pkg-utils.inc(912): eval_once('squid_resync();')
#4 /etc/rc.packages(76): install_package_xml('squid')
#5 {main}
thrownpkg-static: POST-INSTALL script failed
but final message was
"Please visit Services - Squid Proxy Server menu to configure the package and enable the proxy.
Cleaning up cache... done.
Success"
Updated by Reid Linnemann almost 2 years ago
- Status changed from New to Assigned
Updated by Reid Linnemann almost 2 years ago
- Status changed from Assigned to Not a Bug
I'm going to close this as not a bug, when we upgrade php we expect php errors before the packages are updated.
Updated by Jim Pingle almost 2 years ago
- Target version deleted (
2.7.0) - Parent task deleted (
#13446) - Plus Target Version deleted (
23.01)