Regression #14850
closedUnreadable alerts file results in PHP error
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 6 months 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
Updated by Jim Pingle about 2 months ago
- Plus Target Version changed from 24.08 to 24.11
Updated by Marcos M about 2 months ago
- Subject changed from PHP error may be shown in the alerts section to Unreadable alerts file results in PHP error
- Status changed from Pull Request Review to Resolved
- Plus Target Version changed from 24.11 to 24.08
Updated by Jim Pingle about 2 months ago
- Plus Target Version changed from 24.08 to 24.11