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

Issue fork ebt_hero-3530929

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

shane birley created an issue. See original summary.

shane birley’s picture

I *think* I did it correctly... please check my work!

levmyshkin’s picture

Hi Shane Birley, thank you for your patch! I applied it and released EBT Hero 1.4.4:
https://www.drupal.org/project/ebt_hero/releases/1.4.4

I'm not sure how to reproduce it, it means that you have EPT Hero block type, but without EBT Settings field. Did you remove it manually or it wasn't installed with EBT Hero module?

levmyshkin’s picture

Status: Active » Fixed
levmyshkin’s picture

Status: Fixed » Closed (fixed)
shane birley’s picture

I did the usual installation about two months ago but hadn't used it until recently. It is possible the settings field wasn't generated at the time of installation. Unfortunately, I only noticed when I first placed the block.