TypeError: Cannot assign null to property Drupal\vlsuite_modal\VLSuiteModalConfigOverride::$request of type Symfony\Component\HttpFoundation\Request in Drupal\vlsuite_modal\VLSuiteModalConfigOverride->__construct()

Created on 8 February 2024, 5 months ago
Updated 23 February 2024, 4 months ago

Problem/Motivation

In some cases it seems that VLSuiteModalConfigOverride::__construct is getting an empty request from the request stack.

Steps to reproduce

At least in my case is happening in every request.

Proposed resolution

Call requestStack->getCurrentRequest() just before using it.
And if needed use a method to set the request in a class property for multiple usages.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain SadySierralta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024