I've just setted up a fresh Symfony 4 project but when I navigate to the "public" folder the webprofiler shows up with the following message:
An error occurred while loading the web debug toolbar. Open the web profiler.
When I click on "Open the web profiler" I get the following error:
Error 404, Object not found
The path which is not found is in this case:
http://localhost/test-project/public/_profiler/4d2f65
Could anyone help me fix this issue?
If you are setting up a Symfony4/Flex app from scratch, it might not have the profiler installed.
composer require profiler --dev
You may also need to follow the webserver-config to enable mod_rewrite in Apache, or the equivalent in Nginx.
Test it with a server.
php -S localhost:8000 -t public/
After that navigate to:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.