Skip to content

Debug toolbar is not shown on PHP errors #7616

@cebe

Description

@cebe

The problem is that ErrorHandler does not use application view in this case:
https://github.com/yiisoft/yii2/blob/master/framework/web/ErrorHandler.php#L220

But toolbar is only rendered on view end body event:
https://github.com/yiisoft/yii2/blob/master/extensions/debug/Module.php#L122

@samdark do you remember why app view is not used on PHP error?

We might fix this by adding a similar event to the errorhandler.

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