Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Filter
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
21 Sep 2011 at 17:10 UTC
Updated:
6 Mar 2017 at 22:22 UTC
When a view has a date filter it throws the following error:
Undefined index: date_filter in date_views_filter_handler_simple->date_default_value() (line 49 of date/date_views/includes/date_views_filter_handler_simple.inc).
The view seems to work fine so not a critical issue.
Comments
Comment #1
arlinsandbulte commentedHave you tried the latest 7.x-2.x?
Comment #2
alexio2170 commentedHi, I'm having the same problem but I cannot just run an update. Shall I have to uninstall from scratch? I'm fearing to lose data in my content
Comment #3
jesss commentedI'm getting this same error on 7.x-2.x-dev.
Comment #4
jesss commentedI did a little digging on this. From what I can tell, here's the problem snippet:
If I'm reading this right, it's looking for the remembered filter value. But, if no filter has yet been set, there's no value for it to return, so it's throwing an error.
So, in addition to checking if the value should be remembered, there should probably be some logic checking to make sure there is a value to remember in the first place. However, actually coding that logic is beyond my capabilities.
As confirmation, if I remove the option to remember the last selection, the error message goes away.
Comment #5
ckuepker commentedGot a similar error. Specifically:
Undefined index: views in date_views_filter_handler_simple->date_default_value() (Line 49...which was caused by a date filter in views. The suggestion by #4 jesss worked. Disable "Remember last decision" in exposed filter, notice gone. Thank you.
Comment #6
mesr01 commented+1
Comment #7
CMS commentedHad a similar issue, even though i did not have the remember the last selection checked, editing the view and applying settings for the exposed filter made it go away.
HTH
Comment #8
karens commentedShould be fixed now.