diff --git a/themes/vufind/blueprint/templates/error/index.phtml b/themes/vufind/blueprint/templates/error/index.phtml
index 9e7beaf2457743de4b210f10f6d81859f3302785..df89e483dd5e98e821d80152f449abd3d88c2704 100644
--- a/themes/vufind/blueprint/templates/error/index.phtml
+++ b/themes/vufind/blueprint/templates/error/index.phtml
@@ -8,7 +8,7 @@
   <p>
     <?=$this->transEsc('Please contact the Library Reference Department for assistance')?>
     <br/>
-    <? $supportEmail = $this->escape(VF_Config_Reader::getConfig()->Site->email); ?>
+    <? $supportEmail = $this->escape(\VuFind\Config\Reader::getConfig()->Site->email); ?>
     <a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a>
   </p>
 </div>
@@ -20,7 +20,7 @@
   <?=$this->transEsc('upgrade_description', array(), 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?>
 <? endif; ?>
 
-<? if (isset($this->exception)): ?>
+<? if (isset($this->display_exceptions) && $this->display_exceptions): ?>
   <h3><?=$this->transEsc('Exception')?>:</h3>
   <p>
     <b><?=$this->transEsc('Message')?>:</b> <?=$this->exception->getMessage()?>
@@ -30,7 +30,18 @@
   <pre><?=$this->exception->getTraceAsString()?>
   </pre>
 
-  <h3><?=$this->transEsc('error_page_parameter_list_heading')?>:</h3>
-  <pre><?=$this->escape(var_export($this->request->getParams(), true))?>
-  </pre>
+  <? if ($e = $this->exception->getPrevious()): ?>
+    <h3>Previous exceptions:</h2>
+    <? while($e): ?>
+        <h4><?php echo get_class($e); ?></h4>
+        <p><?=$e->getMessage()?></p>
+        <pre><?=$e->getTraceAsString()?></pre>
+        <? $e = $e->getPrevious(); ?>
+    <? endwhile; ?>
+  <? endif; ?>
+
+  <? if (isset($this->request)): ?>
+    <h3><?=$this->transEsc('error_page_parameter_list_heading')?>:</h3>
+    <pre><?=$this->escape(var_export($this->request->getParams(), true))?></pre>
+  <? endif; ?>
 <? endif ?>
diff --git a/themes/vufind/root/templates/error/index.phtml b/themes/vufind/root/templates/error/index.phtml
index 03d9a1f724e68feeb91fcbaaa3d1c2ac5fdad927..67428a78dd614645326ffea6df44cbc64c216e33 100644
--- a/themes/vufind/root/templates/error/index.phtml
+++ b/themes/vufind/root/templates/error/index.phtml
@@ -8,17 +8,28 @@
   <?=$this->transEsc('upgrade_description', array(), 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?>
 <? endif; ?>
 
-<? if (isset($this->exception)): ?>
+<? if (isset($this->display_exceptions) && $this->display_exceptions): ?>
   <h3><?=$this->transEsc('Exception')?>:</h3>
   <p>
     <b><?=$this->transEsc('Message')?>:</b> <?=$this->exception->getMessage()?>
   </p>
-  
+
   <h3><?=$this->transEsc('Backtrace')?>:</h3>
   <pre><?=$this->exception->getTraceAsString()?>
   </pre>
-  
-  <h3><?=$this->transEsc('error_page_parameter_list_heading')?>:</h3>
-  <pre><?=$this->escape(var_export($this->request->getParams(), true))?>
-  </pre>
+
+  <? if ($e = $this->exception->getPrevious()): ?>
+    <h3>Previous exceptions:</h2>
+    <? while($e): ?>
+        <h4><?php echo get_class($e); ?></h4>
+        <p><?=$e->getMessage()?></p>
+        <pre><?=$e->getTraceAsString()?></pre>
+        <? $e = $e->getPrevious(); ?>
+    <? endwhile; ?>
+  <? endif; ?>
+
+  <? if (isset($this->request)): ?>
+    <h3><?=$this->transEsc('error_page_parameter_list_heading')?>:</h3>
+    <pre><?=$this->escape(var_export($this->request->getParams(), true))?></pre>
+  <? endif; ?>
 <? endif ?>