Andrew Ferguson
Romping Around in Europe
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
@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).
@David Evans:
I’ll take a look at that part of the code and see what the issue is. Thanks for heads up.
[...] 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. [...]
[...] 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. [...]
[...] 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 [...]
[...] 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. [...]
[...] Dunstan-style Error Page - to customise my 404 Error page. [...]
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
[...] 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 [...]
[...] Dunstan-style Error Page [...]
[...] Dunstan-style Error Page [...]
[...] Dunstan-style Error Page [...]
does this work with v2.3?
@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.
[...] Link to the plug-in I used on my 404 page. [...]
[...] Dunstan-style Error Page [...]
[...] Dunstan-style Error Page: This plug-in allows me to create a custom 404 error page. [...]
[...] Dunstan-style Error Page Plugin von Andrew Ferguson ersetzt die normale 404-Fehlerseite durch eine der Fehlerseite von Dunstan [...]
Works perfectly. Thanks!
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?
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.
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.
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……
@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.
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…
[...] 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. [...]
This uplugin is not working.
Parse error: syntax error, unexpected $end in C:\www\wp-content\plugins\afdn_error_page.php on line 503
[...] 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 [...]
Do you plan on making this plugin Wordpress 2.5-compatible?
[...] 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. [...]
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.
@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.
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.
[...] Dunstan-style Error Page [...]
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
@sandy:
What version of WordPress are you using? Also, what’s your URL?
[...] 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 [...]
[...] 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 [...]
[...] 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. [...]
Does this work in 2.7.1?
Yes, it should work just fine. Although I haven’t done extensive testing. I’m using, though, and I haven’t had any problems.
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.
@bob
Sorry about that. I changed code markup formats and didn’t get everything converted. So yes, there is some missing code:
[code language="php"]< ?php afdn_error_page(); ?>[/code]
I’ve also updated the documentation.
[...] 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. [...]
[...] 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 [...]
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 :
?>
If your theme does not have a 404.php file, you can just create one.
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.
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.
[...] 5. Dunstan style 404 error page [...]