Encaf 404 Email

Developer

Chad Crowell - Encaffeinated

3rd Party (Free)

Creative Commons Attribution Non-Commercial No Derivatives

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Drop this plugin anywhere into your 404 template and it will automatically generate and send an email to the supplied email(s) letting them know that the template was displayed and what the URL was that caused it.

v1.1 - bug fixes, added ignore parameter

{exp:fourohfour_email to=“email@domain.com,another_email@domain.com” ignore=“some_file.jpg”}

Parameters:
to : One or more comma separated emails who should receive the notification email.

ignore : One or more comma separated files to ignore. If there are any global resources that aren’t loading when the offending page is loaded and the 404 is shown, duplicate emails will be sent.  For instance, while developing this plugin, I constantly got a 404 email for the test page as well as one for favicon.ico, because the browser was looking for it and it didn’t yet exist. Favicon.ico is now automatically ignored, but you can also explicitly ignore any other files using this parameter.


Instructions:
Drop this plugin anywhere into your 404 template and it will automatically generate and send an email to the supplied email(s) letting them know that the template was displayed and what the URL was that caused it.

In order to have the correct URL shown in the email, your 404 template must display when the bad URL is loaded. In order to make this happen, use a template setup along these lines:

{exp:channel:entries channel=“channel_name” rdf=“off”}

  {if no_results}
  {embed=“site/404”}
  {/if}

  {embed=“includes/_header” title=”{title}”}
  ...content…
  {embed=“includes/_footer” loc=”{segment_1}”}
 
{/exp:channel:entries}

In this scenario, the site/404 template that gets loaded should be an entire HTML page including header and footer. Because the 404 template is a full HTML page and is loaded in before any of the content of the intended page template, the user sees the fully rendered 404 error page, while the URL for the intended page is still in the address bar (as opposed to redirecting the user to a www.domain.com/site/404 URL). This way, the plugin can access the URL and email it.

To ensure the emails are formatted correctly, be sure these values in the control panel are filled out:

  1. Admin > General Configuration > Name of your site
  2. Admin > Email Configuration > Return email address for auto-generated emails
  3. Admin > Email Configuration > Webmaster or site name for auto-generated email

This entry was created September 23, 2010, 12:23 pm.
This entry was last updated July 9, 2011, 12:32 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

2 Reviews:

Media Surgery 12.10.11

Media Surgery
Rating - {addon_rating_average}

We have used this before and its handy but there’s no download link to upgrade.

BA Creative 07.14.11

BA Creative
Rating - {addon_rating_average}

Download link?