Drupal error

I keep on getting this error logging at watchdog table in database while loading front end or home page:  %type: !message in %function (line %line of %file) Drupal error I spend around 20 min, keep on clicking the “Clear All Caches” button at Performance section. I checked the code and found following:

function watchdog_exception($type, Exception $exception, $message = NULL, $variables = array(), $severity = WATCHDOG_ERROR, $link = NULL) {

 // Use a default value if $message is not set.
 if (empty($message)) {
 // The exception message is run through check_plain() by _drupal_decode_exception().
 $message = '%type: !message in %function (line %line of %file).';
 }
 // $variables must be an array so that we can add the exception information.
 if (!is_array($variables)) {
 $variables = array();
 }

 require_once DRUPAL_ROOT . '/includes/errors.inc';
 $variables += _drupal_decode_exception($exception);
 watchdog($type, $message, $variables, $severity, $link);
}

If message is not set then the given above log is set.

Instantly I cleared browser cache and here you go the page is loading good.

May be this is only case for me, but keep on posting if I find any other solution.

1 COMMENT

  1. Hi,
    Same error showing on my watchdog table.
    Even i can’t show my home page cause this error “The website encountered an unexpected error. Please try again later.”

LEAVE A REPLY

Please enter your comment!
Please enter your name here