Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | views_php-notice-value_3060019.patch | 1.15 KB | jenlampton |
#5 | views-undefined_index_value-3060019-5-D7.patch | 828 bytes | Liam Morland |
| |||
#2 | views-undefined_index_value-3060019-2-D7.patch | 808 bytes | Liam Morland |
|
Comments
Comment #2
Liam MorlandFix.
Comment #3
DamienMcKennaGood catch, thank you.
Comment #4
DamienMcKennaI think it'd be more readable if it was changed to an if() statement.
Comment #5
Liam MorlandFix as an
if
statement.Comment #6
tomdearden CreditAttribution: tomdearden commentedI'm seeing this issue, too- with grouped filters set up using Views UI on v7.x-3.23. Both the patches (#3 and #5) above work..
Comment #8
DamienMcKennaCommitted. Thank you.
Comment #10
jenlamptonI'm seeing this same notice for numeric handler:
Comment #11
Liam MorlandThat looks like something that should have a new issue.