diff --git a/www/_include.php b/www/_include.php
index 74eb6b2192393970fbe1be0f827d4c302265e3f5..9daa9a398864d097563448ca7aca993a32a0d6b6 100644
--- a/www/_include.php
+++ b/www/_include.php
@@ -31,15 +31,6 @@ set_exception_handler('SimpleSAML_exception_handler');
 // log full backtrace on errors and warnings
 function SimpleSAML_error_handler($errno, $errstr, $errfile = null, $errline = 0, $errcontext = null)
 {
-    if (!class_exists('\SimpleSAML\Logger')) {
-        /* We are probably logging a deprecation-warning during parsing. Unfortunately, the autoloader is disabled at
-         * this point, so we should stop here.
-         *
-         * See PHP bug: https://bugs.php.net/bug.php?id=47987
-         */
-        return false;
-    }
-
     if (\SimpleSAML\Logger::isErrorMasked($errno)) {
         // masked error
         return false;