Closed wesleylancel closed 6 years ago
@wesleylancel, that's strange because that should be the only thing that you have to do. Did you get this on a new project or on an existing one?
@Devolicious tried two existing projects. They don't have anything special regarding to the toolbar though.
Check logs var/logs/dev.log
and try establish what is wrong or give our more informations.
Found this in my logs:
[2017-11-30 09:35:45] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "Variable "data" does not exist." at /vendor/kunstmaan/bundles-cms/src/Kunstmaan/AdminBundle/Resources/views/Toolbar/bundles_version.html.twig line 10 {"exception":"[object] (Twig_Error_Runtime(code: 0): Variable \"data\" does not exist. at /vendor/kunstmaan/bundles-cms/src/Kunstmaan/AdminBundle/Resources/views/Toolbar/bundles_version.html.twig:10)"} {"file":"/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php","line":89,"class":"Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener","function":"logException"}
@wesleylancel, do You tried clear cache?
Yes, but it doesn't seem to help.
We do have the version checker disabled, does the toolbar check this?
@wesleylancel In the isEnabled function of the BundleVersionDataCollector there is a check for this.
@sandergo90 yes, indeed
Okay, so that shouldn't be an issue then. Not sure what's happening then.
@wesleylancel, @sandergo90 i sent fix for this.
I just tried turning on the new toolbar helpers (on the 5.0 branch) using
but all I'm getting is:
An error occurred while loading the web debug toolbar. Open the web profiler.
.Also, it seems that the translator datacollector overrides Symfony's one, causing that part of the original profiler to be disabled.