$this->state not initialised. Causing fatal error

Created on 19 March 2025, 17 days ago

Problem/Motivation

Fatal error cannot call member function get() on null

$this->state->get();

$this->state not initialised

Steps to reproduce

Installing the module breaks application

Proposed resolution

Use Drupal static method or service to access state variables. Attaching a patch

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jonnyToomey

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024