How to disable the Symfony Exception error pages on Invalid URLs



  • I've installed UVdesk on Ubuntu 18.04 and so far it looks like a brilliant solution, however, if I browse to an invalid URL I get a Symfony Exception page with lots of debug information and I would like to disable this and have a generic 404 page not found page displayed.

    Is this possible, a guide and/or screenshots would be very helpful.

    I've attached an example.

    Capture.PNG



  • @leedsy90

    You are currently running your project in development(dev) mode.
    Please change it to prod in .env file of your project then for any error you will see a error page instead.
    APP_ENV: prod



  • @Sanjeev Thank you.

    I found a similar thread on stackoverflow referring to the dev mode and was able to change this. Thank you for your speedy reply, it's nice to see an active forum for an opensource project.

    I have a few other question so will open separate thread for these.



  • @leedsy90

    I have a few other question so will open separate thread for these.

    We would love to resolve your queries.


Log in to reply