Download & Extend

Errors at the day View: Undefined index: groupby_times in template_preprocess_calendar_day()...

Project:Calendar
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:needs work

Issue Summary

Environment:
Date 7.x-2.0-rc1
Drupal core 7.10
Views 7.x-3.0
Chaos tool suite (ctools) 7.x-1.0-rc1

I use Multi-day style (in the Month Options) as "Display multi-day item as a single column" in order to avoid
Nodes without an end time are assigned the "multi-day" CSS class in the calendar month view

Now I get a series of notices and warnings every time I choose "Day" at the Month View:

Notice: Undefined index: groupby_times in template_preprocess_calendar_day() (Zeile 267 von /home/www/vtad7/sites/all/modules/calendar/theme/theme.inc).
Notice: Undefined variable: divisor in template_preprocess_calendar_day() (Zeile 280 von /home/www/vtad7/sites/all/modules/calendar/theme/theme.inc).
Warning: Division by zero in template_preprocess_calendar_day() (Zeile 280 von /home/www/vtad7/sites/all/modules/calendar/theme/theme.inc).
Notice: Undefined variable: divisor in template_preprocess_calendar_day() (Zeile 281 von /home/www/vtad7/sites/all/modules/calendar/theme/theme.inc).
Warning: Division by zero in template_preprocess_calendar_day() (Zeile 281 von /home/www/vtad7/sites/all/modules/calendar/theme/theme.inc).

The error Series occur only one, paging thru the Days doesn't generate more errors.
Also the Day View starts a the beginning of the Month instead of the actual date (see www.vtad.de at the calendar)

The Day entries are displayed Correctly

Seems to be related to the issue http://drupal.org/node/1248002#comment-5418860 where this errors occur for the week view.

Is there an easy way to suppress the DAY Link?

Comments

#1

I don't know if is caused by a Views Grouping error but http://drupal.org/node/1235994#comment-5393400
looks similar (there is also a patch)

#2

I am getting a similar error backtrace, but on the Week view with 7.x-3.x-dev. The error mentioned in #1 can apparently be worked around by disabling the core RDF module. However, I tried that and it doesn't fix the Week view error.

#3

Error happens also with Views 7.x-3.1

#4

Status:active» fixed

Date 7.x-2.0-rc2 seems to fix this bug.

#5

Status:fixed» closed (fixed)

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

#6

Version:7.x-3.0-alpha2» 7.x-3.x-dev
Status:closed (fixed)» active

Installing an old version (7.x-2.0-rc2) does not fix the issue for the current release. So I'm re-opening the ticket. I'm having the issue with the latest dev version (7.x-3.x-dev).

Notice: Undefined index: groupby_times in template_preprocess_calendar_day() (line 273 of /home/test/domains/www.test.org/sites/all/modules/contrib/calendar/theme/theme.inc).

#7

Status:active» postponed (maintainer needs more info)

Not enough information to reproduce. Plus I can't tell if you are using the latest version of Date and whether you are trying to display a view created in Calendar 7.2 (which will not work) instead of re-creating the view in 7.3.

#8

Status:postponed (maintainer needs more info)» fixed

Finally was able to replicate this and find a fix.

http://drupalcode.org/project/calendar.git/commit/4389f3d

#9

Status:fixed» closed (fixed)

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

#10

Priority:normal» major
Status:closed (fixed)» needs work

Bug still exists in latest dev and 7.x-3.4. Commit http://drupalcode.org/project/calendar.git/commit/4389f3d not applied. Please check.

#11

It appears this commit reverted the changes made in #8:
http://drupalcode.org/project/calendar.git/commit/9f4ee153a96eeaf149a285...