Skip to content

Problem Upgrading symfony/var-dumper to 7.0.3 #54017

Closed
@dev-bjwells

Description

@dev-bjwells

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.

image

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:

  1. As part of the symfony framework bundle using the provided symfony/var-dumper:7.0.3 or symfony/debug-bundle:7.0.3
  2. Go to a page on your site or local-dev to create a first load instance.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions