Just got the latest event and event repeat modules, but whenever I try to submit a repeat pattern I get this fatal error:
Call to undefined function event_get_offset() in C:\Apache\drupal\modules\eventrepeat\eventrepeat.module on line 1820.
Looks like that method is used in a couple places. Any ideas?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | eventrepeat_includetz.patch | 623 bytes | seanbfuller |
Comments
Comment #1
seanbfuller commentedCan you confirm that you are actually using the 4.7 version of the event module and the cvs version of eventrepeat? (See the note on the front page of eventrepeat for the current state of the code.)
Comment #2
scottg commentedGetting the latest cvs version of event repeat made seemed to make things worse (I couldn't even create a repeat pattern). Went back to the latest 4.7 and poked around a little. Turns out its just missing an include.
include(drupal_get_path('module', 'event') .'/event_timezones.inc');Seems to work fine now.
Scott
Comment #3
seanbfuller commentedWhen you say you could not create a pattern with cvs, do you mean that the tab was missing or that you got errors? Because in cvs the repeat pattern form was moved to a collapsible field inside the node form.
Comment #4
scottg commentedWhen I opened up an event that I had previously setup a repeat pattern for I saw the new interface (very nice btw). When I tried to create a new event the fieldset was empty. I could only see the Repeat Pattern title, and there was no way to expand it. I'm assuming this is because I'm using 4.7 versions of drupal and the event module, but the CVS version of event repeat.
If these should all work together, I can open up another issue.
Scott
Comment #5
seanbfuller commentedNo, that is the correct combination right now until we push the code to a new 4.7. There's a chance that it might be because you have old data, and this could be an upgrade issue. I'll see if I can track that down, but in the meantime, if you get the chance and can try again with a fresh event node, that would be helpful.
Thanks!
Comment #6
scottg commentedFinally got a change to test this again. I got the latest module from CVS, created a new event node, and I was able to successfully create a new repeat pattern.
Everything looks good.
Thanks
Comment #7
seanbfuller commentedMarking this as closed since you got it working.
Comment #8
gaele commentedSorry, had to reopen this. I'm using event 4.7 and eventrepeat from CVS. I could create a repeat pattern, but afterwards setting a Repeat end date caused the error message as mentioned above.
After adding the include to eventrepeat as specified by scottg in comment #2 the error disappeared and everything worked fine.
Please see http://drupal.org/node/66404#comment-107773: "timezone.inc is no longer included by default"
Comment #9
seanbfuller commentedComment #10
seanbfuller commentedI'm still not getting this error. I just tested with latest event 4.7 from cvs and eventrepeat 4.7.x-2.x. However, after looking through the code, I do see how eventrepeat could try to call event_get_offset() without the file being included. I've created this small patch which does an include_once on the file.
Up for review.
Comment #11
francisu commentedI have successfully applied the patch and tested creating events, and adding an end date to an existing event (with no previous end date) and it works fine for me.
Comment #12
seanbfuller commentedApplied to both 4.7.x-2.x and HEAD
Comment #13
(not verified) commented