From metatag.module: metatag_entity_load()
catch (Exception $e) {
watchdog('metatag', 'Error loading meta tag data, do the database updates need to be ran? do the <a href=":url:">database updates</a> need to be ran? The error occurred when loading record(s) :ids for the :type entity type. The error message was: :error', array(':ids' => implode(', ', array_keys($entities)), ':type' => $type, ':error' => $e->getMessage()), WATCHDOG_CRITICAL);
// Don't display the same message twice for Drush.
if (php_sapi_name() != 'cli') {
drupal_set_message(t('Error loading meta tag data, do the <a href=":url">database updates</a> need to be ran?', array('url' => url('update.php'))), 'error');
}
}
- The watchdog call has ":url:" but no url included in the variables parameter.
- The drupal_set_message call has ":url" and has "url" in the args parameter.
This shows a rather ugly message ;)
Comments
Comment #1
devin carlson commentedA patch to implement some small improvements:
Comment #2
helmo commentedThanks, looks good at first glance.
Comment #3
damienmckennaThanks for the patch, guys, and sorry for leaving such a dumb error in the update.
This version of the patch removes some redundant text in the watchdog() message.
Comment #4
damienmckenna(never mind, wrong issue).
Comment #5
damienmckennaCommitted, thanks for the patch, Devin!
Comment #7
dimitrisg commentedHi, can someone tell me how I will use this patch in steps?
I updated meta tags and this message showed up
Error loading meta tag data, do the /sites/ptyx/update.php">database updates need to be ran?
thanks
Comment #8
damienmckenna@dimitrisg: http://drupal.org/patch