uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
9.24k stars 464 forks source link

404 page does not work correctly #705

Closed mgasche closed 1 year ago

mgasche commented 1 year ago

Bug report

Title

404 page does not work correctly

Issue Description

I have installed UVdesk. Now I noticed during testing that if I enter a wrong URL the 404 error page does not work anymore. A Symfony Expection is displayed instead of the 404 page.

Preconditions

Please provide as detailed information about your environment as possible.

1. Version v1.1.3; Core Version v1.1.4
2. Commit id: cbbb183
3. Ubuntu 22.04.3 LTS
4. PHP 8.0

Steps to reproduce

I have installed UVdesk according to these instructions and after that the error of the wrong display of the 404 page occurred.

https://www.howtoforge.com/how-to-install-uvdesk-helpdesk-system-on-ubuntu-22-04/

Expected result

The 404 page should be displayed like on the Colligso page.

image

Actual result

Instead, this page is displayed.

image

komal-sh-27 commented 1 year ago

@mgasche ,

I have installed UVdesk according to these instructions and after that the error of the wrong display of the 404 page occurred.

We are informing to you, need to change your .env file in prod mode. If you have not changed your env file dev to prod mode. Then please follow the below steps:

Step 1: Open your project folder and open .env file and change app_env mode:

APP_ENV=dev

to

APP_ENV=prod

Step 2: After change your env in prod mode then you will be clear cache of your project using the below command:

$ php bin/console c:c

Step 3: Now you can check your 404 page, now exception not display.

Thanks and Regards, Uvdesk Team

mgasche commented 1 year ago

Hello

This was the right hint. Now I also get the 4040 page. Maybe it would be useful to have a hint on the web page when it is running in dev mode.