Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Error on MaintenanceListener #51

Open
2b3ez opened this issue Jan 20, 2016 · 3 comments
Open

Error on MaintenanceListener #51

2b3ez opened this issue Jan 20, 2016 · 3 comments

Comments

@2b3ez
Copy link

2b3ez commented Jan 20, 2016

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 2b3ez closed this as completed Jan 20, 2016
@2b3ez 2b3ez reopened this Jan 20, 2016
@ghost
Copy link

ghost commented Nov 7, 2016

This problem has been solved?

@tcitworld
Copy link

I have the same issue.

@aivus
Copy link
Contributor

aivus commented Dec 11, 2017

Hi guys.

This error means enabled maintenance mode.

parent::__construct(503, $message, $previous, array(), $code);

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants