Skip to content

Bug: Call to a member function hasSession() on null #484

Closed
@boksie

Description

@boksie

Hello,

During the warming up cache of the Symfony bin/console cache:clear command, i'm getting the following error:

In Activator.php line 56:
                                                  
  [Error]                                         
  Call to a member function hasSession() on null 

The problem here is that the cache:clear is warming up the cache and calls the getSession from Activator.php, but there is no current request in the request stack.
Possible fix is to add a null check for getCurrentRequest in the Activator.php line 56.

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