RSS Feed Subscribe to RSS Feed

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

  1. Downloaded the latest version of the plugin (below)
  2. Rename the downloaded file to afdn_error_page.php
  3. Upload to your plugins directory (typically /wp-content/plugins/)
  4. Activate the plugin
  5. Configure the plugin under Options > Error Page in the administration panel
  6. Find the 404.php file for the theme you are using, usually located at /wp-content/themes/*YOUR_THEME_NAME*/404.php
  7. Delete everything in the 404.php file and replace it with:
          <?php afdn_error_page(); ?>
    
  8. 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/

Reader's Comments

  1. Andrew Ferguson | August 2nd, 2007 at 1:40 pm

    @booyaa:

    Thanks for heads up, I’ve added it to the list of bugs for the next release which is coming at some point. Hopefully before school starts (so within 3 weeks…maybe).

    Reply to this comment
  2. Andrew Ferguson | August 2nd, 2007 at 1:41 pm

    @David Evans:

    I’ll take a look at that part of the code and see what the issue is. Thanks for heads up.

    Reply to this comment
  3. EN İYİ WORDPRESS EKLENTİLERİ | Kaotik Sükûn | August 8th, 2007 at 7:57 pm

    [...] Error Page - Hata Sayfası: Silinmiş, adresi değiştirilmiş ve kullanıcının adresi yanlış yazması gibi nedenlerle websitesinde mevcut olmayan bir adres sorgulandığında, ziyaretçiyi efektif bir şekilde yönlendiren eklenti. [...]

    Reply to this comment
  4. En İyi Wordpress Eklentileri & LugatSoft | August 13th, 2007 at 10:17 am

    [...] Error Page - Hata Sayfası: Silinmiş, adresi değiştirilmiş ve kullanıcının adresi yanlış yazması gibi nedenlerle websitesinde mevcut olmayan bir adres sorgulandığında, ziyaretçiyi efektif bir şekilde yönlendiren eklenti. [...]

    Reply to this comment
  5. JackuB.name > Blog > Nejlepší 404? | August 19th, 2007 at 2:09 pm

    [...] udělal, aby moje 404 vypadala fungovala podobně jako ta Dunstanova a najednou jsem našel plugin Dunstan-style Error Page. Stačilo trochu úprav v PHP a nová chybová stránka 404 je na světě. Možná vydám českou [...]

    Reply to this comment
  6. En Çok Kullanılan Wordpress Eklentileri 2 | Tolga’nın Mekanı | August 20th, 2007 at 12:44 am

    [...] Error Page - Hata Sayfası: Silinmiş, adresi değiştirilmiş ve kullanıcının adresi yanlış yazması gibi nedenlerle websitesinde mevcut olmayan bir adres sorgulandığında, ziyaretçiyi efektif bir şekilde yönlendiren eklenti. [...]

    Reply to this comment
  7. Harlequin Girl » Credits | August 24th, 2007 at 3:54 am

    [...] Dunstan-style Error Page - to customise my 404 Error page. [...]

    Reply to this comment
  8. Blogtrepreneur | Entrepreneur Blog | August 28th, 2007 at 12:26 pm

    you can then enter anything that you want to appear on the 404 page. Some other resources for WordPress 404 pages include: - Guide to 404 Pages from the WordPress Codex - 404 Search Function for WordPress -Dunstan-Style Error Page Plugin- 404 Notifier Plugin - Doug Karr’s 404 Suggestions Adnan’s Points: As an example of what you can write on your 404 page, checkout Blogtrepreneur’s version. This came with the theme and gives the reader easy-to-follow instructions in order to

    Reply to this comment
  9. Plugins | September 10th, 2007 at 10:08 am

    [...] and include your own little review. in action (which reminds me that i have a lot of movies to add!)Dunstan Style Error Page - It creates a nice 404 page that has various options to help the user out. Submitting a 404 [...]

    Reply to this comment
  10. Wordpress Plugins op nachtgedachten | September 23rd, 2007 at 7:40 am

    [...] Dunstan-style Error Page [...]

    Reply to this comment
  11. Hotelblues.com » Misc » Plugins Used | September 23rd, 2007 at 5:05 pm

    [...] Dunstan-style Error Page [...]

    Reply to this comment
  12. Solipsus » Credits | October 5th, 2007 at 9:30 am

    [...] Dunstan-style Error Page [...]

    Reply to this comment
  13. theSuperStar | October 15th, 2007 at 9:48 pm

    does this work with v2.3?

    Reply to this comment
  14. Andrew Ferguson | October 17th, 2007 at 2:24 pm

    @theSuperStar:

    Parts of it work with v2.3 (i.e. you’ll get the correct 404 page), however the reporting mechanism seems to be broken. I am working on a new release as time permits.

    Reply to this comment
  15. Create A Sticky 404 Page | Thom Allen Weblog | October 31st, 2007 at 8:29 pm

    [...] Link to the plug-in I used on my 404 page.  [...]

    Reply to this comment
  16. tilo schröder » WordPress-Plugins » Meine verwendeten WP-Plugins | November 21st, 2007 at 11:03 am

    [...] Dunstan-style Error Page [...]

    Reply to this comment
  17. WordPress Plug-ins I Use And Why | Thom Allen Weblog | November 23rd, 2007 at 8:20 pm

    [...] Dunstan-style Error Page: This plug-in allows me to create a custom 404 error page. [...]

    Reply to this comment
  18. WP Plugin Archive » Dunstan-style Error Page Plugin | December 23rd, 2007 at 12:02 am

    [...] Dunstan-style Error Page Plugin von Andrew Ferguson ersetzt die normale 404-Fehlerseite durch eine der Fehlerseite von Dunstan [...]

    Reply to this comment
  19. Chris Carter | February 18th, 2008 at 9:31 am

    Works perfectly. Thanks!

    Reply to this comment
  20. Ashley | February 24th, 2008 at 3:44 pm

    This is really odd, but the plugin was working fine for me the other day. I haven’t changed anything with the plugin files, but all of a sudden today it is displaying the error page contents twice on the 404 page. I’m running WP version 2.3.3. Could this possibly be the cause of the problem?

    Reply to this comment
  21. Andrew Ferguson | February 25th, 2008 at 12:40 am

    I use it on my site (http://andrewferguson.net/asdfasdf) which runs 2.3.3 and it works fine, so I don’t think that’s the issue.

    Reply to this comment
  22. Kahil | March 14th, 2008 at 8:31 pm

    there seems to be some new bug… it only started happening when I upgraded wordpress to the newest version not too long ago. i am getting spam reports daily.

    Reply to this comment
  23. Kahil | March 15th, 2008 at 9:28 am

    wow… i dont know if its just a coincidence or not, but ever since i left my previous comment, the spam error reports have just poured in…… :(

    Reply to this comment
  24. Andrew Ferguson | March 15th, 2008 at 4:26 pm

    @Kahil, et al:

    Sorry that you’re having problems, I’m assuming you’re using WP 2.3.3? I’m working on revising the code and hope to have a new release soon.

    One of the issues I’m working on is what to do with the forms because A) I find that people don’t use them (especially the form with feedback); which makes the entire form idea B) more trouble then it’s worth.

    I’ve also been noticing more and more spam slipping through Akismet on my regular comments, so it might also be an Akismet issue.

    Reply to this comment
  25. Kahil | March 15th, 2008 at 5:22 pm

    well, maybe add captcha or some other kind of verification and that should dramatically reduce that issue….at least i’d think it would. I do have the newest version of wordpress. I love the format, layout and overall idea of this plugin, its great. But as of right now, I disabled it because the email’s have been getting out of control. I just changed my 404 page to have everything but the form, etc. What I didn’t understand is that a lot of the email addresses that were submitting these and getting through, were also in the caught spam list. even the names were the same. maybe ur right, there must be some issues going on over at akismet… we want it to work full time and its only working part time. sucks…

    Reply to this comment
  26. y@yl@l@r.org » Blog Archive » En İyi Wordpress Eklentileri | March 16th, 2008 at 5:26 pm

    [...] Error Page - Hata Sayfası: Silinmiş, adresi değiştirilmiş ve kullanıcının adresi yanlış yazması gibi nedenlerle websitesinde mevcut olmayan bir adres sorgulandığında, ziyaretçiyi efektif bir şekilde yönlendiren eklenti. [...]

    Reply to this comment
  27. S!dlo | March 22nd, 2008 at 4:00 am

    This uplugin is not working.

    Parse error: syntax error, unexpected $end in C:\www\wp-content\plugins\afdn_error_page.php on line 503

    Reply to this comment
  28. Come sfruttare adeguatamente le pagine di errore 404 con WordPress | linux 4 life | March 27th, 2008 at 12:50 am

    [...] aver provato diversi plug-in, ho deciso di utilizzare Dunstan-style Error Page, che mi sembra strutturato in maniera ottimale. Di seguito trovate uno screenshot della mia pagina [...]

    Reply to this comment
  29. Enzo | May 16th, 2008 at 4:42 am

    Do you plan on making this plugin Wordpress 2.5-compatible?

    Reply to this comment
  30. Vasif.net » ASP sistemden WordPress’e geçiş | June 3rd, 2008 at 4:12 am

    [...] Dunstan Style Error Page: Sitenizde 404-sayfa bulunamadı hatalarını daha şık ve ziyaretçilerin işine yarar bir şekilde göstermek isterseniz, bu eklenti işinize yarayabilir. Hata sayfasında geri besleme kutusu formu var ve bu form Akismet ile spam’lere karşı denetleniyor. [...]

    Reply to this comment
  31. mitixa | July 6th, 2008 at 11:56 pm

    nice plugin. I had some problem with my theme’s plugin so i looked around and found yours. its cool. However, I have a small problem. since it inherit theme design, in my case, the vertical line (separating content and sidebar on regular page) appears on error page. and it looks annoying. check this http://www.mitixa.com/xyz.htm … it will take to error page. is there any workaround ? your help is appreciated. thank in advance.

    Reply to this comment
  32. Andrew Ferguson | July 10th, 2008 at 2:48 pm

    @mitixa:

    I took a look at your site and it appears that the line is part of the background image for your blog: http://www.mitixa.com/wp-content/themes/ganjapress-10/images/ganjapressbg.jpg

    Because I was curious (which is to say that I won’t do this for everyone who asks), I was able to whip up some CSS code to fix your issue:
    #content{ background: #FFF !important; border-left: 10px solid #679A01 !important; border-right: 10px solid #679A01; }

    On line 345, after < ?php get_header(); ?>, put the following code:

    [code lang="html"]

    [/code]
    …and you should be set.

    Reply to this comment
  33. mitixa | July 10th, 2008 at 5:12 pm

    Andrew,
    Thanks a lot for taking your time out and fixing my problem http://www.mitixa.com - error page). I really appreciate it. Thanks again.

    Reply to this comment
  34. word press eklentileri on Grafik Hocam | August 15th, 2008 at 12:44 am

    [...] Dunstan-style Error Page [...]

    Reply to this comment
  35. sandy | November 7th, 2008 at 12:46 am

    hi Andrew,i have tried to install your new version but i can’t get anything on my site.i am getting the result as a blank white page.could you please solve out my problem in installing the new version.hope you will reply soon.
    ==============================================
    Sandy
    Social Bookmarking

    Reply to this comment
  36. Andrew Ferguson | November 9th, 2008 at 11:31 pm

    @sandy:

    What version of WordPress are you using? Also, what’s your URL?

    Reply to this comment
  37. Editing 404 Page Text in 1.3.x - DIY Themes Forums | November 16th, 2008 at 12:46 pm

    [...] Function for Dunstan-style Error Page? I’ve been using the error page at Andrew Ferguson dot NET Dunstan-style Error Page for a while now. It’s got a lot of great features that I don’t want to lose. Problem is, I don’t [...]

    Reply to this comment
  38. Editing 404 Page Text in 1.3.x - Page 2 - DIY Themes Forums | November 19th, 2008 at 11:12 am

    [...] Posted by relaxedguy I’ve been using the error page at Andrew Ferguson dot NET Dunstan-style Error Page for a while now. It’s got a lot of great features that I don’t want to lose. Problem is, I don’t [...]

    Reply to this comment
  39. ZDaYLaN.CoM - Fim İndir,Oyun İndir,Online İndirmeden Film İzle,ZDaYLaN,Daylan,Mardin,Mardin Resimleri,Mardin Yemek Tarifleri,Yemekleri » Açıklamalı 400 Wordpress Eklentisi - Wordpress | November 21st, 2008 at 8:08 am

    [...] 300 © Dunstan-style Error Page TEST Kişisel, hata sayfası oluşturmanızı sağlar, hata ile karşılaşanın, size hızlı veya detaylı olarak hata ile ilgili bilgi verebilmesini, sitenizedeki son yazılanlar, ana sayfa, arşiv gibi alanlara yönlendirilebilmesine olanak veren sağlam bir eklentidir. [...]

    Reply to this comment
  40. Patricia | March 13th, 2009 at 5:33 am

    Does this work in 2.7.1?

    Reply to this comment
  41. bob | March 17th, 2009 at 10:32 am

    can you post *exactly* what’s in your 404.php file in 2.7.1? I feel as though there’s something missing as simply placing

    [php]

    [/php]

    as your instructions say, doesn’t work. Any help would be greatly appreciated.

    Reply to this comment
  42. Tekno Seyir » Blog Arşivi » ASP sistemden WordPress’e geçiş | April 30th, 2009 at 2:02 am

    [...] Dunstan Style Error Page: Sitenizde 404-sayfa bulunamadı hatalarını daha şık ve ziyaretçilerin işine yarar bir şekilde göstermek isterseniz, bu eklenti işinize yarayabilir. Hata sayfasında geri besleme kutusu formu var ve bu form Akismet ile spam’lere karşı denetleniyor. [...]

    Reply to this comment
  43. A 404 Page To Call My Own | | May 16th, 2009 at 9:43 am

    [...] much and reading, I landed on Andrew Ferguson’s page and boy was I awfully that I found him. He made an 404 design especially for dummies [...]

    Reply to this comment
  44. Palvestegui | June 5th, 2009 at 1:42 am

    Dear Andrew,

    My theme doesn’t have a 404 error page, it has this stuff in the Main Index Template:

    // END of: If there are any posts
    // If there are no posts:
    else :
    ?>

    Reply to this comment
  45. Joy Phillip | June 9th, 2009 at 2:45 am

    Hi!

    I’ve had the default 404 page forever, and I found your plugin. But, when I intentionally mess up the url so I get my 404 page, I have a slight problem.

    First, the entire sidebar loads as well. That’s fine and everything, but it messes up and squishes all the content on the right of the page, where the 404 page is at. There’s no Title to the page, and the boxes and such are either on top of each other or squished together. Could you tell me where I need to go to tweak these?

    I took out all the contents of the default 404 page (actually I just commented it all out, but it should show ONLY the php code to load the new page) and it shouldn’t be calling on the 404.css page anymore. So I’m at a loss.

    Reply to this comment
  46. Joy Phillip | June 10th, 2009 at 2:09 pm

    Nevermind on all the help I asked for. I managed to style the content in my stylesheet and edit the plugin extensively so that the table displayed correctly.

    Turns out the comment box on the last form was not dynamically sized, probably because of the rest of my site’s stylepage. That messed up the table and so on. So i found the problems and managed to fix them.

    Take a look:

    http://joyphillip.davensjournal.com/error

    I’m rather proud of my job if I do say so myself.

    Reply to this comment
  47. 8 WordPress Plugins to make your 404 error pages user friendly & efficient - Daily SEO blog | June 29th, 2009 at 9:25 am

    [...] 5. Dunstan style 404 error page [...]

    Reply to this comment

Leave a Comment

Gravatar: Get your picture displayed next to your comment: http://gravatar.com

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Plugin Help: If your requesting help about a plugin, please provide as much information as possible. At the very least, include your WordPress Version and the Plugin Version!