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.

CommentFileSizeAuthor
#1 date-1101186-1.patch1.13 KBboobaa

Comments

boobaa’s picture

Project: Calendar » Date
Status: Active » Needs work
StatusFileSize
new1.13 KB

Oops, submitted to the wrong queue (though was related).

Here is the patch itself; 'needs work' because I don't really know where that 0 should be coming from.

jeff_c’s picture

subscribe

sebish’s picture

subscribe

mmattson’s picture

subscribe

brightbold’s picture

Subscribe. 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.

karens’s picture

Status: Needs work » Fixed

The week view needed some work. Fixed differently than what was in this patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.