OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

This topic contains 3 replies, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 6 days, 21 hours ago.

  • Creator
    Topic
  • #40393

    Estefa| Carevich
    Participant

    Hi all, I would like modify the css and add a logo in the page 503, the others pages works fine (404 & 403) for that pages I use a conditions and works fine but the page 503 is a little different and I can’ t see my template.

    In this case the only solution is create a twig file in this route?
    templates/bundles/TwigBundle/Exception/error503.html.twig or we can do other solution more simple?

    Thanks!

    Estefa

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #40395
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Estefa,

    This is the right and most straightforward solution. Another way is to create the “kernel.exception” event listener.
    All the ways to customize error pages are described in official Symfony documentation:
    https://symfony.com/doc/3.4/controller/error_pages.html

    #40413

    Estefa| Carevich
    Participant

    Hi Andrey,
    Thanks for your help. I finished the pages 402 & 404 how said symfony but I can’t see the page (503 Service Unavailable Error) when y use the following commands for check
    php bin/console lexik:maintenance:lock -e prod
    php bin/console lexik:maintenance:unlock -e prod

    in my localhost I see correctly my page
    http://local.local.com/index_dev.php/_error/503 but when is deployed the page is blank without content.
    for this page I should be add other configuration/specific redirection??
    Thanks again
    Estefa

    #40427
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    but when is deployed the page is blank without content.

    It looks like the 503 page is managed by the webserver, not an application. Please check the webserver configuration and access logs when you visit 503 page on a production webserver.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No