Sylius: Overriden error templates do not work

Created on 4 Oct 2018  路  1Comment  路  Source: Sylius/Sylius

Sylius version affected: 1.3

Description

It looks like that override for Sylius error templates is not applied. This is probably due to Symfony using templates/bundles for bundle template overrides instead of template/bundle as it is here.

Steps to reproduce

Install Sylius 1.3
Access /_error/404 in dev mode, or a non existent page in prod mode
Error page will be a default "Oops! An Error Occurred" Symfony error page.

Possible Solution

Renaming templates/bundle to templates/bundles makes the Sylius error template for 404 and 500 errors show up. Curiously enough, this does not work for other errors (/_error/401 still shows the Symfony error template for some reason) or even for SyliusShopBundle (for example templates/bundles/SyliusShopBundle/layout.html.twig).

Potential Bug

Most helpful comment

@pamil I believe this can be closed :)

>All comments

@pamil I believe this can be closed :)

Was this page helpful?
0 / 5 - 0 ratings