Skip to content

JavaScript error on all Exception pages with profiler #25894

@weaverryan

Description

@weaverryan
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0 (but probably earlier)

When the profiler is present, the following JS error shows on every exception page:

screen shot 2018-01-22 at 9 25 54 pm

To repeat:

composer create-project symfony/skeleton exception_js_error
cd exception_js
composer require twig profiler
php -S 127.0.0.1:8000 -t public

Then go to any error page, like http://localhost:8000/foo.

It appears that the Sfjs.createTabs() (that executes the createTabs() method in base_js.html.twig of the WebProfilerBundle) is called twice. The first time works, but the second time, some classes (which were removed the first time) are missing.

It's possible this came from 1c595fc#diff-de00cc2fe56e59a48a4d26e7a0dccca3, but I'm very not sure - maybe @ro0NL can prove/disprove my theory. Updated - it doesn't look like that specific change was the problem - as changing back has no effect. Sorry for the noise.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions