diff --git a/plugins/system/log/log.php b/plugins/system/log/log.php index 2e5b0204c0307..269ffb2083518 100644 --- a/plugins/system/log/log.php +++ b/plugins/system/log/log.php @@ -56,6 +56,14 @@ public function onUserLoginFailure($response) } JLog::addLogger(array(), JLog::INFO); - JLog::add($errorlog['comment'], JLog::INFO, $errorlog['status']); + try + { + JLog::add($errorlog['comment'], JLog::INFO, $errorlog['status']); + } + catch (Exception $e) + { + // If the log file is unwriteable during login then we should not go to the error page + return; + } } }