Skip to content

TwigBundle/ProfilerBundle JavaScript error #26118

@mhujer

Description

@mhujer
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.4

Javascript error is report to the JS console (tested in Chrome and Edge) when the exception is handled by Symfony Profiler:

Uncaught TypeError: Cannot set property 'className' of null at Object.createTabs

May be related to #24281.

Steps to reproduce:

  1. Create a new flex project
composer create-project symfony/skeleton blog
cd blog
composer require server --dev
composer require profiler --dev 
  1. Create a controller and enable its route in config/routes.yaml:
<?php
namespace App\Controller;

class DefaultController {
	public function index()
	{
		throw new \Exception('Wow!');
	}
}
  1. Run php bin\console server:run
  2. Open the browser
  3. Info about the exception is rendered properly
  4. But there is an error in the browser JS console

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