Call to a member function getValue() on null

Created on 19 June 2025, 9 days ago

Problem/Motivation

Was tinkering with EBT Hero and ran into and error when placing the block within the layout. Once the block was placed and I saved the layout, the dreaded WSOD appeared. It slapped the site around for a bit, and then I decided to tickle the bug to see what was up.

Steps to reproduce

Load up block.

Explode.

"Uncaught PHP Exception Error: "Call to a member function getValue() on null" at /web/modules/contrib/ebt_hero/ebt_hero.module line 42"

Proposed resolution

It looks like variable paths are calling getValue() on a null.

Remaining tasks

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇨🇦Canada Shane Birley

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