Harborn-digital / cookie-consent-bundle

Symfony bundle to append Cookie Consent to your website to comply to AVG/GDPR for cookies.
MIT License
18 stars 18 forks source link

An exception has been thrown during the rendering of a template ("Not Found"). #109

Closed titamrtn closed 2 years ago

titamrtn commented 2 years ago

Hi,

I've just installed this bundle, everything was created by flex. I've just add esi in framework I'm using symfony 5.4

I changed my packages/ch_cookie_consent.yaml to this

ch_cookie_consent:
    theme: 'light'
    categories:
        - 'analytics'
        - 'tracking'
        - 'marketing'
        - 'social_media'
    position: 'bottom' # top, bottom
    simplified: true

When i try to render the page i got An exception has been thrown during the rendering of a template ("Not Found").

image

titamrtn commented 2 years ago

My bad, it was my route. I had a CMS-like route /{url}, to fix it i just needed to load cooki-consent route before it