[SOLVED][Drupal Errors] Notice: Undefined variable
Many Drupal programmers, Drupal site admins and Drupal site users have encountered the
"Notice: Undefined variable" error message in their Drupal site. If you are facing the same situation in your Drupal site then read on to find out more.
This is a warning from PHP indicating that the code is taking some shortcuts and it does not mean, there is an error in your Drupal installation. This message means that there is a very verbose level of logging enabled on your server. Here is the workaround for that.
- The setting for such a verbose level of logging is usually not enabled on a production server but your PHP settings may have it turned on
- It is considered safe to turn off these notice messages by editing your php.in .
error_reporting = E_ALL & ~E_NOTICE
Hope that helps.
The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.