Index: pathauto.module IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- pathauto.module (date 1399850709000) +++ pathauto.module (date 1399850727000) @@ -443,8 +443,24 @@ * An array of entity IDs. */ function pathauto_entity_state_load_multiple($entity_type, $entity_ids) { - $pathauto_state = db_query("SELECT entity_id, pathauto FROM {pathauto_state} WHERE entity_type = :entity_type AND entity_id IN (:entity_ids)", array(':entity_type' => $entity_type, ':entity_ids' => $entity_ids))->fetchAllKeyed(); + try { + $pathauto_state = db_query("SELECT entity_id, pathauto FROM {pathauto_state} WHERE entity_type = :entity_type AND entity_id IN (:entity_ids)", + array(':entity_type' => $entity_type, ':entity_ids' => $entity_ids))->fetchAllKeyed(); + - return $pathauto_state; + return $pathauto_state; + } catch (Exception $ex) { + if (!defined('MAINTENANCE_MODE')) { + $message = 'The pathauto_state table does not exist, so a default value was provided. Please make sure to run update.php'; + drupal_set_message($message, 'warning'); + watchdog('pathauto', $message, array(), WATCHDOG_WARNING); + } + $result = array(); + foreach ($entity_ids as $id) { + $result[$id] = FALSE; + } + + return $result; + } } /**