Bug #13516
closedpfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1
Snort with PHP 8.1 - TypeError when attempting to view a Suppression List on a Snort interface
100%
Description
Testing Snort against September 22, 2022 "PHP 8.1 and FreeBSD Main" snapshot the following PHP error is received when attempting to view a Suppress List by clicking the View List button to the right of the Alert Suppression and Filtering drop-down selector:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 devel-main-n255797-d8d104eec65: Thu Sep 22 18:54:16 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/YVYTCXmQ/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev
Crash report details:
PHP Errors:
[24-Sep-2022 12:01:57 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/snort/snort_interfaces_edit.php:73
Stack trace:
#0 {main}
thrown in /usr/local/www/snort/snort_interfaces_edit.php on line 73
Documenting the bug here and also adding it to my private TODO list for Snort.
Updated by Bill Meeks about 2 years ago
This issue has been resolved in the latest Snort GUI package pull request posted here for review and merge: [https://github.com/pfsense/FreeBSD-ports/pull/1191]. When the Pull Request is merged, this issue can be marked RESOLVED.
Updated by Kris Phillips about 2 years ago
- Status changed from New to Resolved
Tested on September 30th builds. No PHP errors present when viewing the Alert Suppression and Filtering under the interface config. Marking as Resolved.
Updated by Jim Pingle about 2 years ago
- Affected Plus Version changed from 22.11 to 23.01