phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Drupal Configuration: Error Handling

Tag: drupal, configuration, error handle   Category: PHP Application
post: 01 May 2008 read: 889


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

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting