Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.11
Component:
exposed filters
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2010 at 03:39 UTC
Updated:
24 Dec 2010 at 00:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedIt does sound like a PHP 5.3 compatibility issue that has since been fixed, but I honestly don't remember everything that's gone into the last 5 releases. =)
Comment #2
SpikeX commentedWell then I'll try upgrading.
Comment #3
SpikeX commented(Marked as 2.9, but it's actually 2.11, someone needs to update the tracker info)
I just upgraded to 2.11 and still have this problem.
Line 77 says:
And I'm assuming it's referring to
$form['value'], so... anyone have any ideas? This code is inside the date validation function, and it's running this code because it wants to print an Invalid date format to me, but I've actually inputted a correct date format for PHP's strtotime (I used this as a test date/time: 2010-06-01 12:00:00, and clearly it's not working because it's getting to the "Invalid date format" code point).Ideas?
Comment #4
merlinofchaos commented2.11 is in there but it's sorted after 2.1 due to the way strings are sorted.
Comment #5
merlinofchaos commentedComment #6
SpikeX commentedI figured out some more details that might be pertinent to this bug. It seems it only happens when you disable the "Optional" parameter (using an exposed date filter), and then try to set the required (default) "Value" parameter. Even if you type in a correct date, it doesn't validate properly, and thus, the default value isn't stored properly, so visiting the actual views page for the first time throws up an error because it can't get the default value.
Basically, I made this error go away by making the exposed date filter "optional", thereby bypassing the default "Value" option, which may be the source of the problem.
Comment #7
merlinofchaos commentedWhich date filter? CCK date module?
Comment #8
merlinofchaos commentedOh wait no, that's Views' filter. Thanks for the info, I'll see if I can look into it.
Comment #9
SpikeX commentedOh, yeah, sorry, I'm referring to "Node: Post Date" specifically, though other date filters may have this problem as well, I'm not sure. My issue's been fixed, though, like I said, I just enabled "Optional", so the "Value" parameter wasn't needed (which seemed to be the culprit).
Comment #10
dawehnerDoes this help?
Comment #11
merlinofchaos commentedLooks straightforward.
Committed to all branches.