Skip to content
Advertisement

Symfony 5.x – An error occurred while loading the web debug toolbar

I’m working with Symfony 5.X, it’s a fresh install on docker with the image “bitnami/symfony”. I use too “bitnami/nginx” and “bitnami/php-fpm”. All work good except the web profiler toolbar.

I passed the 2 last days on Google searching for a solution but nothing work. I can access the url /_profiler/ but if I click on a token to view some details I get an error 500.

JavaScript

I think it’s for this reason that my toolbar is showing “An error occurred while loading the web debug toolbar“.

Here is my Nginx conf for this site:

JavaScript

My docker-compose file:

JavaScript

I read on forums that some people fix this problem with the package symfony/apache-pack but I don’t want to use Apache because I have already Nginx.

I have no more idea, I have tried so much things, if someone can help me it will be nice.

Advertisement

Answer

This is a bug in Symfony 5.0.0 that should already be fixed in 5.0.1. You can see the configuration change, that probably will fix this here: https://github.com/symfony/symfony/compare/v5.0.0…v5.0.1#diff-414443648aa78565f2158b8154a1ff8e

The best approach would be to run composer update

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement