Andrew Ferguson
Rejecting Your Reality and Substituting My Own Since 1986
Dunstan-style Error Page
Overview
This is another plugin that I used on my old site and now I’m modifying it to make it WP friendly. It’s basically the same 404 error page that Dunstan Orchard uses on his 1976design.com/blog site. Install the file to your plugins directory, activate, configure, and enjoy!
Compatibility
Wordpress Versions:
- 2.1
- 2.0
- 1.5
- In theory, it should work with 1.2.*, but it has not been tested.
Installation
- Downloaded the latest version of the plugin (below)
- Rename the downloaded file to
afdn_error_page.php - Upload to your plugins directory (typically
/wp-content/plugins/) - Activate the plugin
- Configure the plugin under Options > Error Page in the administration panel
- Find the 404.php file for the theme you are using, usually located at
/wp-content/themes/*YOUR_THEME_NAME*/404.php - Delete everything in the 404.php file and replace it with:
<?php afdn_error_page(); ?> - Enjoy!
Download
Latest version:
Changelog
1.3.1
….
1.3
….
1.2
Got all the Akismetfeatures working. While the plugin will work without an API Key, you really should get one. All comments that are tagged as spam by Akismet are placed into an array in the WPDB. You can manage it from the regular Error Page management window. I used the Akismet Comment Spam plugin as a basis for a lot of the UI, so things should be pretty familiar.
4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.2/
1.1
Layed the foundation for Akismet spam testing. If you have a valid API key, detailed error reports will be checked against for spam. YOU DO NOT NEED AN API KEY FOR THE PLUGIN TO WORK. My name was also hardcoded in one last place, so I took care of that. There was an issue with checking the referer that would return a false negative if the actual URL wasn’t preceded with WWW, so that’s fixed. I also coded some things in a rather crappy way, so I cleaned that up. Most of the plugin is now commented, so that should help anyone try to figure out what the heck I was thinking.
4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.1/
0.82
Thanks to Ozh for the heads up on some hardcoded text that should have been dynamic and for suggesting securing the email form.
12-29-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.82/
0.8
NOTICE: Copyright format changed from MIT to GNU GPL as of version 0.8
Embeded error page code into plugin file….if that makes sense.
12-28-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.8/
0.7
Added functionality for redirected error pages.
8-25-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.7/
0.5
Inital public release
6-24-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.5/
Subscribe to RSS Feed
Hi, I use your plugin on all my Wordpress installations and seems to work fine all the way up to 2.8.4.
Except on my test site on my local machine (running Wordpress with a XAMPP local server setup). On that one, it gives me this error (see below).
Could the fact that it’s a local server environment be breaking it, or something else? Let me know. Thanks!
Parse error: syntax error, unexpected $end in C:\XAMPP\htdocs\wordpress\wp-content\plugins\dunstan-error-page\afdn_error_page.php on line 503
Great plugin..thank you…
Shalom,
Everything worked great except the link to “Submit an error report form” which did nothing so I added this: to it & all works greater now.
Shalom,
Frank
Sorry, the code didn’t appear. It was
@Frank:
I’m having some issues with code in comments. If you email your code, I’ll post it for you.
Sorry.