Skip to main contentSkip to footer

%type: !message in %function (line %line of %file) Drupal error

Rupak Nepali
Share:
%type: !message in %function (line %line of %file) Drupal error

I keep on getting this error logging at watchdog table in the 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 the 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 the message is not set then the given above log is set.

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

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

Comments

Join the conversation and share your thoughts

Leave a Comment

Your comment will be reviewed before publishing.

Be the first to comment on this post!

Innovation

Let's Make Something Amazing Together

We always provide our best creative ideas at the highest level. Tell us about your project and we will make it work.

InnovateBringing innovative solutions to complex problems
AutomateStreamlining processes through automation
DominateLeading the market with exceptional results
Build Smarter and Launch FasterEfficient development for rapid deployment