hryvinskyi / magento2-error-reporting
Advanced error notification system for Magento 2 with spam prevention, and comprehensive error tracking.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 1
Open Issues: 0
Type:magento2-module
pkg:composer/hryvinskyi/magento2-error-reporting
Requires
- php: ^8.1
- hryvinskyi/magento2-base: *
- magento/framework: *
- magento/module-backend: *
- magento/module-email: *
- magento/module-store: *
README
Advanced error notification system for Magento 2 with spam prevention, and comprehensive error tracking.
Table of Contents
Features
Core Features
- Dual Email System - Separate detailed emails for developers and simplified emails for clients
- Smart Spam Prevention - Configurable throttling to prevent email flooding (filesystem-based)
- Configurable Blacklist - Filter out specific errors using patterns or regex
- Severity Levels - Critical, Error, and Warning levels with configurable minimum threshold
- Comprehensive Error Data - Captures exception details, stack traces, request info, user context, post data, and server environment
- Filesystem-Based Tracking - Error tracking stored in var/error_reporting (no database dependency)
- Configuration Failover - Automatically exports config to filesystem config (no database dependency)
- Sensitive Data Protection - Automatically redacts passwords, credit cards, and other sensitive data
- Zero External Dependencies - Works even when database, Redis, or other services are down to ensure error reporting is reliable
Configuration
Go to Stores > Configuration > Advanced > Error Reporting to configure the module settings:

Error Information Captured
For Developers (Detailed Email):
- Exception type, message, file, line number
- Full stack trace
- Previous exceptions chain
- Request details (URL, method, headers, POST data)
- Client information (IP address, user agent, referer)
- User context (guest, customer, or admin with details)
- Store context (store name, code, URL)
- Server environment (PHP version, memory usage, peak memory)
- Error frequency and occurrence count
For Clients (Simplified Email):
- General error notification
- Timestamp and location
- Reassurance that the issue is being addressed
- Clean, non-technical presentation
Installation
Composer (recommended)
composer require hryvinskyi/magento2-error-reporting bin/magento module:enable Hryvinskyi_ErrorReporting bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy
Manual Installation
- Download the module and upload it to
app/code/Hryvinskyi/ErrorReporting - Enable the module and update the database:
bin/magento module:enable Hryvinskyi_ErrorReporting bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy
Author
Volodymyr Hryvinskyi
- Email: volodymyr@hryvinskyi.com
- GitHub: https://github.com/hryvinskyi
Support
For issues, feature requests, or questions, please contact the author or submit an issue on GitHub.

