Call to a member function getTargetEntityTypeId() on null in Drupal\business_rules\Plugin\EntityReferenceSelection\BusinessRulesViewsSelection->buildConfigurationForm() (line 373)

Created on 30 July 2024, 5 months ago
Updated 17 September 2024, 3 months ago

Environment

  • Drupal: 10.3.1 (problem started when upgraded from 10.2.7)
  • Module Entity Reference Exposed Filters 2.0.0-alpha2

Problem/Motivation

In Views, when trying to access the "Settings" (see button-clicked-triggering-the-error.jpg) of an exposed filter created as a "Reference Filter" (see exposed-filter-as-reference-filter.jpg), the popup dialog box does not open (as it used to do in 10.2.7). On the interface I get the following error (see on-screen-error-message.jpg):

Error message
Oops, something went wrong. Check your browser's developer console for more details.

When consulting Drupal Watchdog, this is the full error message

Error: Call to a member function getTargetEntityTypeId() on null in Drupal\business_rules\Plugin\EntityReferenceSelection\BusinessRulesViewsSelection->buildConfigurationForm() (line 373 of /var/www/docroot/modules/contrib/business_rules/src/Plugin/EntityReferenceSelection/BusinessRulesViewsSelection.php).

Steps to reproduce

  1. Install required plugins to be able to create a view with an exposed filter that is of type "reference filter"
  2. After it has been created, try to reach "Settings"
🐛 Bug report
Status

Active

Version

3.0

Component

Plugins

Created by

🇨🇦Canada aarantes

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

Comments & Activities

Production build 0.71.5 2024