E-mail on page not found (404) error

Description
If you're tired of searching your Apache logs for page-not-found (404) errors, this contribution will generate an e-mail to the address of your choice when your page_not_found page executes.

One file to edit (to specify your email address); two new files with no core-file overwrites.

Forum Support Thread

Zen Cart® Versions v1.5.6, v1.5.7
Original Author lat9
Last Updated by lat9 - 19 Feb 2021
Downloads 938

Version History

E-mail on page not found (404) error   -   Version: v1.2.4
This version contains changes captured for GitHub issue #2. Language constants (and pseudo-configuration definitions) have been moved from the auto_loader to a language-based extra_definitions file.

The email report now includes the contents of the entire $_SERVER and $_SESSION values.

GitHub repository: https://github.com/lat9/emailFor404
 
Zen Cart® Versions v1.5.6, v1.5.7
Date Added 19 Feb 2021
Author lat9
File Size 13.1 KB
PHP 5.3 Safe? No
Downloads 15
 
E-mail on page not found (404) error   -   Version: v1.2.3
Updates for PHP 7.0 compliance (constructor name changed to __construct).  
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5
Date Added 24 Dec 2015
Author lat9
File Size 11.6 KB
PHP 5.3 Safe? Yes
Downloads 96
 
E-mail on page not found (404) error   -   Version: v1.2.2
Get REQUEST_URI from $_SERVER instead of $_ENV; $_ENV is not available in some configurations and $_SERVER is and has the same information.

Fixed problem when a test-user account email address using HTML emails is the same as the email address to which the 404-error emails are to be sent. Corrected typo that resulted in emails always being archived.
 
Zen Cart® Versions v1.3.8, v1.3.9, v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4
Date Added 18 May 2012
Author lat9
File Size 11.2 KB
PHP 5.3 Safe? Yes
Downloads 252
 
E-mail on page not found (404) error   -   Version: v1.2
Added configuration "switch" to enable/disable of archiving these emails and corrected email text.  
Zen Cart® Versions v1.3.8, v1.3.9, v1.5.0
Date Added 12 May 2012
Author lat9
File Size 10.8 KB
PHP 5.3 Safe? Yes
Downloads 37
 
E-mail on page not found (404) error   -   Version: 1.1
For v1.3.9 compatibility, use v1.0
For v1.3.8 compatibility (and older), use v1.1
 
Zen Cart® Versions v1.3.8
Date Added 13 Apr 2010
Author lat9
File Size 9.7 KB
PHP 5.3 Safe? Unknown
Downloads 452
 
E-mail on page not found (404) error   -   Version: 1.0
 
Zen Cart® Versions v1.3.9
Date Added 9 Apr 2010
Author lat9
File Size 9.9 KB
PHP 5.3 Safe? Unknown
Downloads 86
 


disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR