Undefined variable: groups in Drupal\views\Plugin\views\filter\FilterPluginBase->groupForm()

Created on 17 September 2014, almost 10 years ago
Updated 13 June 2024, 13 days ago

Problem/Motivation

Got this error when trying to create a views filter Plugin:

Notice: Undefined variable: groups in Drupal\views\Plugin\views\filter\FilterPluginBase->groupForm() (line 761 of core/modules/views/src/Plugin/views/filter/FilterPluginBase.php).

FilterPluginBase::groupForm() initializes $groups in a conditional that may not always be true and then uses it outside that conditional.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->

Steps to reproduce

If you are getting the error reported at #3277134: Count Argument is null and it brings to fatal error when upgrading from PHP 7.4 to PHP 8.1 β†’ , add steps to reproduce starting from a fresh install of Drupal core.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡³πŸ‡¬Nigeria almaudoh

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024