Key "type_class" for array with keys "id, name, view_vars, children" does not exist in @WebProfiler/Collector/form.html.twig at line 460. · Issue #20823 · symfony/symfony · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're on 3.2.0, the fix should be already merged in the 3.2 branch and 3.2.1 will be OK.
If you're on the latest commit on the 3.2 branch, the please provide a reproducer.
…lds added to the form after the form was built (tgalopin)
This PR was merged into the 3.2 branch.
Discussion
----------
[WebProfilerBundle] Fix a web profiler form issue with fields added to the form after the form was built
| Q | A
| ------------- | ---
| Branch? | 3.2
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #20823
| License | MIT
| Doc PR | -
I discovered a bug in 3.2 in the web profiler and this PR fixes it. This issue has been fixed in the past by #13166 and probably reintroduced by the refactoring we did in the WebProfiler in 3.2. I simply applied the fix to these changes.
To reproduce the original problem, simply clone the current standard edition, create a Form with a Type and add a field after its creation. Once done, try to access the Webprofiler: it will fails with the following error:
> Key "type_class" for array with keys "id, name, view_vars, children" does not exist in @WebProfiler/Collector/form.html.twig at line 460.
Commits
-------
d9af8e9 Fix a web profiler form issue with fields added to the form after the form was built
Is this issue related to: Exception after 3.2 upgrade #20698 ?
The issue occurs opening the Form panel in the Profiler.
The text was updated successfully, but these errors were encountered: