Drupal Configuration: Error Handling


Drupal Configuration Step By Step Tutorial - Part 3: In this post, we will modify error message. There are 2 error we handle, not found page and access denied page. Default 404 (not found) page if no other content matches the requested document. Default 403 (access denied) page if the requested document is denied to the current page.

First, we modify error message for not found page. To modify it, we create a page. Click Create Content > Create Page. Enter information about error, like this:

create page for handling not found page error

Save it. Look node from this page. for example:

http://localhost/drupal/node/2

Then, open error reporting page by click Administer > Site Configuration > Error Reporting.

Enter page for not found page like:

create page for handling not found page error

Save it. Now, open not existing page such as http://localhost/drupal/node/10101010101010. You may get like this:

create page for handling not found page error

Repeat for access denied page



Series this article:
Drupal Configuration: Login to Administration Page
Drupal Configuration: General Setting
Drupal Configuration: Error Handling
Drupal Configuration: Looking Error Report Log
Drupal Configuration: Setting Date and Time
Drupal Configuration: Boosting performance by Caching
Drupal Configuration: File System
Drupal Configuration: Site Maintenance

Bookmark and Share Tag: drupal, configuration, error handle Category: PHP Application Post : May 01st 2008 Read: 16,256

advertisements


blog comments powered by Disqus