Closed
Description
Symfony version(s) affected
^7.0
Description
When upgrading from Symfony 6.4 to 7.0 I noticed that the toolbar utilized with the symfony/debug-bundle
would initialize on first load but when I navigate to a secondary page within the site or refresh the screen the debug bar stops working and the bar display's, "An error occurred while loading the web debug toolbar. Open the web profiler." When clicking on the link to the profiler I received the error message below.
An exception has been thrown during the rendering of a template ("Typed property Symfony\Component\VarDumper\Cloner\Stub::$value must not be accessed before initialization").
After downgrading the symfony/var-dumper:6.4.0
the issue is resolved and I am able to utilize the debug toolbar like normal.
Is there something obvious that I am missing to prevent the error from occurring?
How to reproduce
To reproduce this issue, please take the following steps:
- As part of the symfony framework bundle using the provided
symfony/var-dumper:7.0.3
orsymfony/debug-bundle:7.0.3
- Go to a page on your site or local-dev to create a first load instance.
- Hit refresh or navigate to a secondary page to force a second load of the debug toolbar.
Possible Solution
No response
Additional Context
No response