LexikMaintenanceBundle icon indicating copy to clipboard operation
LexikMaintenanceBundle copied to clipboard

Error on MaintenanceListener

Open 2b3ez opened this issue 9 years ago • 3 comments

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

2b3ez avatar Jan 20 '16 14:01 2b3ez

This problem has been solved?

ghost avatar Nov 07 '16 10:11 ghost

I have the same issue.

tcitworld avatar Mar 15 '17 13:03 tcitworld

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

aivus avatar Dec 11 '17 09:12 aivus