diff --git a/core/includes/errors.inc b/core/includes/errors.inc
index f492d1965572d8290451327694b223a7fb4a6470..045b2dd417c8040b18c7427f9c5c1e03ed48c2d0 100644
--- a/core/includes/errors.inc
+++ b/core/includes/errors.inc
@@ -268,7 +268,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
           '#title' => 'Error',
           '#markup' => $message,
         ];
-        install_display_output($output, $GLOBALS['install_state'], $response->headers->all());
+        install_display_output($output, $GLOBALS['install_state']);
         exit;
       }