Using latest code from views, date and calendar projects and navigating to http://example.com/calendar/2011-W10 yields these errors:
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 210 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 210 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 211 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 211 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 214 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 210 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 210 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 211 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 211 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: field in date_views_argument_handler_simple->query() (line 214 of /home/boobaa/drupal/d7/sites/all/modules/contrib/date/date_views/includes/date_views_argument_handler_simple.inc).
…and these messages:
* Debug:
'Exception: SQLSTATE[42000]: Syntax error or access violation: 1582 Incorrect parameter count in the call to native function \'FROM_UNIXTIME\''
in views_plugin_query_default->execute() (line 1314 of /home/boobaa/drupal/d7/sites/all/modules/contrib/views/plugins/views_plugin_query_default.inc).
* Debug:
'Exception: SQLSTATE[42000]: Syntax error or access violation: 1582 Incorrect parameter count in the call to native function \'FROM_UNIXTIME\''
in views_plugin_query_default->execute() (line 1314 of /home/boobaa/drupal/d7/sites/all/modules/contrib/views/plugins/views_plugin_query_default.inc).
A preliminary patch is being forged.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | date-1101186-1.patch | 1.13 KB | boobaa |
Comments
Comment #1
boobaaOops, submitted to the wrong queue (though was related).
Here is the patch itself; 'needs work' because I don't really know where that
0should be coming from.Comment #2
jeff_c commentedsubscribe
Comment #3
sebish commentedsubscribe
Comment #4
mmattson commentedsubscribe
Comment #5
brightboldSubscribe. Boobaa, how does this fix apply to more recent Date date versions? I'm using Date from April 6 and the code in this area seems pretty different. I thought I'd patched all my many, many date/calendar errors but on the Week view I still get this one.
Comment #6
karens commentedThe week view needed some work. Fixed differently than what was in this patch.