這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Dunstan-style Error Page

外掛說明

See http://www.andrewferguson.net/wordpress-plugins/dunstan-style-error-page/ for the latest updates.

安裝方式

  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!

常見問題集

Where is my Askimet key?

http://faq.wordpress.com/2005/10/19/api-key/

I get a standard ‘The page cannot be found’ error when using Internet Explorer. Any suggestions?

This is known problem and a fix will be rolled into the next release. In the meantime, read on:

Apache makes a note below the ErrorDocument documentation:

Microsoft Internet Explorer (MSIE) will by default ignore server-generated error messages when they are "too small" and substitute its own "friendly" error messages. The size threshold varies depending on the type of error, but in general, if you make your error document greater than 512 bytes, then MSIE will show the server-generated error rather than masking it. More information is available in Microsoft Knowledge Base article Q294807.

My best recommendation is to inflate the size of the error document. But some garbage text between two comment tags and see what that does.

Recently spammers have been using this plugin to send me gobs of “Quick Error Report” emails. Ideas to stop this?

This is also a known problem and I’m working on a way to combat it. In the mean time, your best bet would be to disable the quick error report part. There are several ways you could do it, but the easiest and cleanest is to just remove lines 395 to 403:

Quick error report

...
</form>

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Dunstan-style Error Page〉的開發相關工作。

參與者

將〈Dunstan-style Error Page〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄