I am working with a site that will use many volunteers at all times of the day. When we test it out by setting up time slots for volunteers over several hours or days, we get only one time slot, 5-6 p.m visible (the entered as event started at 4 p.m)

CommentFileSizeAuthor
#12 weight-readme.patch1.12 KBpwolanin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SanDiego’s picture

Priority: Normal » Critical

I am having exactly the same problem. No matter what time the event starts or how many volunteers can be chosen for each timeslot only one time slot is created and it starts at 5pm. If the duration is chosen 2 hours then 5-7pm, if one hour then 5-6pm. Does anybody know any workaround?

cmillet1’s picture

I am having this problem as well. I have used this module before and it worked fine, but removed it and recently installed again to test. The only change since I lasted tested is that we upgraded from Drupal 5.2 to 5.3..

bRight2’s picture

Yep same thing here. Only one timeslot, and always same hour... Drupal 5.3
It's a pity, was exactly what I was looking for to organize the shifts in a bar.

Greetz

pwolanin’s picture

Category: support » bug

hmm - sounds bad - I'll take a look tonight.

pwolanin’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I'm just testing with the current version of event and this module - I don't see the problem. Are you sure you set the end time of the event later than the start time?

bRight2’s picture

Your right,

I did a clean install with event and volunteer module and it did worked...
I'll check my mainsite and try to find the conflicting module/theme (??) one of these days
I'm no programmer dough, I did used a correct (later) end-time :)

sorry for the fuzz;
b

pwolanin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
SomebodySysop’s picture

Status: Closed (fixed) » Active

I've got the same exact problem, although the time slot that comes up is always 4:00 pm - 5:00 pm
no matter what I enter as start and end dates.

I know it's a configuration issue because the same module works on another site with the same version of event.

So, there is either a conflict with the theme or another module. Can you give me a bit of input about what the section that creates the slots is doing so I can try to figure out what other module/theme is causing this?

I did try re-installing volunteer module and updating event module, and at least 3 different themes with no better luck. Looks like there's some module conflict somewhere. I guess.

Thanks!

p.s. Got more info!

I have DBA module running on both sites (the one where event_volunteer works and the one where it doesn't). I created an identical event_volunteer node on each site:

Start date: 30 December 2007 1:00pm
End date: 30 December 2007 10:00pm
Timeslot length: 2 hours.
1 volunteer.

I submitted the node on both sites. I then went looked at the volunteer_timeslots table for each node record. In the timeslot_data field, the following appears:

Site That Doesn't Work
a:1:{i:0;a:4:{s:14:"all_volunteers";a:0:{}s:10:"start_time";i:0;s:8:"end_time";i:7200;s:10:"volunteers";a:0:{}}}
Site that Does Work
a:5:{i:0;a:4:{s:14:"all_volunteers";a:0:{}s:10:"start_time";i:1199044800;s:8:"end_time";i:1199052000;s:10:"volunteers";a:0:{}}i:1;a:3:{s:10:"start_time";i:1199052000;s:8:"end_time";i:1199059200;s:10:"volunteers";a:0:{}}i:2;a:3:{s:10:"start_time";i:1199059200;s:8:"end_time";i:1199066400;s:10:"volunteers";a:0:{}}i:3;a:3:{s:10:"start_time";i:1199066400;s:8:"end_time";i:1199073600;s:10:"volunteers";a:0:{}}i:4;a:3:{s:10:"start_time";i:1199073600;s:8:"end_time";i:1199077200;s:10:"volunteers";a:0:{}}}

So, it would appear that the timeslot_data field info being returned on the first site is NOT correct.

The other fields in each table from both sites are correct: timeslot_length num_volunteers timeslots_organizers

Hopefully this additional info can help someone point me in the right direction.

SomebodySysop’s picture

Status: Active » Fixed

Well, for anyone who might run into this problem, I fixed it in my case. How? I loaded the module weight module (http://drupal.org/project/moduleweight) and observed that the volunteer_timeslots module was weighted lower than the event module. Weighted the two the same, and bingo, it worked.

pwolanin’s picture

Ah - that would indeed be a problem. Did you change the weight of the event module at some point? Maybe I should add that to the README.

SomebodySysop’s picture

I'm not sure what happened (perhaps during some upgrade), but all of my module weights seemed to have changed to "1" at some point. When I loaded volunteer_timeslots, it defaulted to "0". On the site where I didn't have a problem, all my modules were weighted at "0". Why the weights changed on the one site, I don't know. But, it would be good for someone having this problem that this is something they might want to take a look at.

pwolanin’s picture

FileSize
1.12 KB

commiting the attached patch text to the README file.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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