Upgrade to 23.01 Snort error ??
-
Hello fellow Netgate community members,
I wanted to share with you this error that seemed to resolve itself after a cold reboot. This occurred during the 23.01 update. In that time it emailed the error about 50 times until a cold reboot and after it completed the install successfully.
(Image shows PHP ERROR Type: 1 /usr/pkg/snort/snort.inc, Line: 4345, Message: Uncaught TypeError: Cannot access offset of type string on string in /user/local/pkg/snort/snort.inc:435)I do not know if anyone else noticed this issue.
-
It is running after the cold reboot 23.01-RELEASE(arm64)
-
-
That error was fixed in the latest 4.1.6_6 version of the package. My guess is that during the upgrade, for at least some short period, PHP had cached an older version of the
snort.inc
file and was using it. -
@bmeeks I can confirm this issue is no longer present after the cold boot. Again I must have waited around 1 hour before I power cycled it.
-
PHP loves to cache files for performance, so that means when you run a package "upgrade in place" versus a complete uninstall and then reinstall, an older version of files can get used from the cache. The
snort.inc
is a central include file that all of the PHP source files in Snort reference. So it gets cached.If you had deleted (removed) the Snort package and then installed it again, you would not see the error as during the uninstall the file is removed from the PHP cache.