Skip to content

Web Toolbar not loading due to an error in LoggerDataCollector #22952

@SvetlinStaev

Description

@SvetlinStaev
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.0

This morning I have upgraded one of my projects from 3.2.8 to 3.3.0. Everything is working fine except that the web toolbar is not loading. There is a strange error logged which is causing it. In the logs it is:

[2017-05-30 07:51:42] php.CRITICAL: Uncaught Notice: Undefined offset: 1 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Notice: Undefined offset: 1 at /Users/SvetlinStaev/Projects/test/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php:142)"} []

When I comment this $log[1], it works fine and no errors are logged.

$logs[$log[0]][] = array('message' => ''); //$log[1]);

I tried to change the permissions of my cache and log folders, cleared the cache, warmed up, enabled and disabled the toolbar but without commenting $log[1] it fails.

On a fresh Symfony 3.3.0 project it works fine. Would it be possible to have a check for the count of the $log variable before this line?

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