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

1.0.3 2025-11-07 17:24 UTC

This package is auto-updated.

Last update: 2025-11-07 17:24:38 UTC


README

Advanced error notification system for Magento 2 with spam prevention, and comprehensive error tracking.

Latest Stable Version Total Downloads PayPal donate button Latest Unstable Version License

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: configuration.jpg

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

developer_email.jpg

For Clients (Simplified Email):

  • General error notification
  • Timestamp and location
  • Reassurance that the issue is being addressed
  • Clean, non-technical presentation

client_email.jpg

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

  1. Download the module and upload it to app/code/Hryvinskyi/ErrorReporting
  2. 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

Support

For issues, feature requests, or questions, please contact the author or submit an issue on GitHub.