Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello!
I have a notice:
Notice: Undefined index: #id in template_preprocess_views_exposed_form()
I couldn't find anything similar, so I created this ticket
it caused by date_filter, because it doesn't have #id in form
and I think because date_filter is just a container for date select elements and date_filter as an element of form doesn't have #type
foreach ($form['#info'] as $id => $info) {
but in preprocess it contained in #info array so id for widget collected from this element and notice appeared
Comment | File | Size | Author |
---|---|---|---|
#7 | views-theme-undefined-id-1224616-7.patch | 554 bytes | intrafusion |
#5 | views-theme-undefined-id-1224616-5.patch | 554 bytes | bcmiller0 |
#2 | views-theme-undefined-id-1224616-1.patch | 578 bytes | dellintosh |
#1 | views-theme-undefined-id-1224616-1.patch | 766 bytes | dellintosh |
Comments
Comment #1
dellintosh CreditAttribution: dellintosh commentedAttaching patch to test. I'd like to hear some input from the maintainers if this is a good solution to this error.
Thanks,
-dellintosh
Comment #2
dellintosh CreditAttribution: dellintosh commentedtry this one instead.
Comment #3
dawehnerThanks committed this patch to 6.x-3.x and 7.x-3.x
Comment #5
bcmiller0 CreditAttribution: bcmiller0 commentedadding a patch file to allow use via drush make for our build process, against views-6.x-3.0
Comment #6
rooby CreditAttribution: rooby commentedLooks like this is still an issue in 6.x-2.18
Comment #7
intrafusionCame across this same issue when trying to convert to PHP 5.4
Patch from #5 ported to 6.x-2.x
Comment #8
izmeez CreditAttribution: izmeez commentedPatch in comment #7 applies without difficulty to latest views-6.x-2.26
Comment #9
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue