Regression #14850
openPHP error may be shown in the alerts section
0%
Description
Error:
Fatal error: Uncaught TypeError: fgetcsv(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/snort/snort_alerts.php:858 Stack trace: #0 /usr/local/www/snort/snort_alerts.php(858): fgetcsv(false, 1000, ',', '"') #1 {main} thrown in /usr/local/www/snort/snort_alerts.php on line 858 PHP ERROR: Type: 1, File: /usr/local/www/snort/snort_alerts.php, Line: 858, Message: Uncaught TypeError: fgetcsv(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/snort/snort_alerts.php:858 Stack trace: #0 /usr/local/www/snort/snort_alerts.php(858): fgetcsv(false, 1000, ',', '"') #1 {main} thrown
Files
Updated by Marcos M 27 days ago
- Subject changed from ($stream) must be of type resource, bool given Snort 4.1.6_11 to PHP error may be shown in the alerts section
- Status changed from New to Pull Request Review
- Assignee set to Marcos M
- Target version set to 2.8.0
- Plus Target Version set to 24.08
- Affected Architecture deleted (
SG-2100)
This indicates that the Snort UUID alert file exists but was not readable for some reason. The root cause of that can vary, but we can handle the error more gracefully.
https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/399