Notice: Undefined index: value in views_handler_filter->accept_exposed_input()

Created on 6 June 2019, over 5 years ago
Updated 20 June 2023, over 1 year ago

We are getting this error since upgrading to 7.x-3.23:

Notice: Undefined index: value in views_handler_filter->accept_exposed_input() (line 1390 of .../views/handlers/views_handler_filter.inc).

It is caused by commit 50fe583 β†’ from #477984: CCK field is empty/not empty filter doesn't work when exposed β†’ .

This is the line causing the problem:

$value = is_array($value) ? $value['value'] : $value;

We are getting this error on admin/people. The value of $value is array('all' => 'all'). So, it counts as an array, but $value['value'] doesn't exist. This may be due to some customization on our end.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

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

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States jenlampton

    I'm seeing this same notice for numeric handler:

    Undefined index: value in views_handler_filter_numeric->accept_exposed_input() (line 399 of www/sites/all/modules/contrib/views/handlers/views_handler_filter_numeric.inc).
    
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    That looks like something that should have a new issue.

Production build 0.71.5 2024