How to configure error message display in Drupal 7

Enabling error messages in the Drupal 7 is not always advised for a live site. When enabled, the site will display error that may alarm the visitor even if they are simple warnings. This setting is generally used when in development or troubleshooting and you want to display the errors to understand how to correct them. Still, Drupal 7 has a setting for you in the admin dashboard so you can easily change it whenever you are in need.

How to configure error message display in Drupal 7

  1. Log into your Drupal 7 admin dashboard.
  2. On the top menu bar, locate the Configuration option and click on it.
    _main-dashboard-configuration
  3. This brings you to the main Configuration caterogy screen. Find the subcategory named Development and click on the Errors and Logging link.
  4. Once on the Errors and Logging screen, find the Error Messages to Display and select from the three radio button options. The None option is recommended when you are live. The other two are best reserved for troubleshooting or development.
    config-dev-logs-display
  5. Once finished, go down to the bottom of the screen and click the Save Configuration button.

Now you have successfully modified the error message display in Drupal 7

2 Comments

  • i got this following error when i  upload the private message modul e can anyone help me make solution inthis problem?

    • Notice: Use of undefined constant PRIVATEMSG_UNLIMITED – assumed ‘PRIVATEMSG_UNLIMITED’ in privatemsg_admin_settings() (line 130 of/home/a6714694/public_html/sites/all/modules/privatemsg/privatemsg.admin.inc).
    • Warning: Invalid argument supplied for foreach() in field_view_mode_settings() (line 627 of /home/a6714694/public_html/modules/field/field.module).
    • I was able to install and enabled the module on a fresh Drupal installation without any errors at all. Be sure that you are using the correct version of the module for the version of Drupal that you are running.

Was this article helpful? Let us know!