LexikMaintenanceBundle
LexikMaintenanceBundle copied to clipboard
Error on MaintenanceListener
Symfony 2.7
I got this error in profiler : Uncaught PHP Exception Lexik\Bundle\MaintenanceBundle\Exception\ServiceUnavailableException
Line concerned is 194 : throw new ServiceUnavailableException();
I can't display a custom error 503
This problem has been solved?
I have the same issue.
Hi guys.
This error means enabled maintenance mode. https://github.com/lexik/LexikMaintenanceBundle/blob/718a65585927a342835ae962d125567bf9a4f31a/Exception/ServiceUnavailableException.php#L24
So, it looks like expected behaviour.
I can't display a custom error 503
Did you try next to set custom 503 error page? https://github.com/lexik/LexikMaintenanceBundle/blob/master/Resources/doc/index.md#custom-error-page-503