Closed (fixed)
Project:
Event
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2006 at 02:35 UTC
Updated:
7 Feb 2007 at 21:45 UTC
The latest CVS changes to event.module didn't run on my 4.7 based site. There were two problems. First, on line 1904 PHP apparently does not like an include directive within a switch block (but outside the context of a case).
Second, with that repaired several code paths include event_timezone.inc during the same execution, which causes duplicate definitions of the functions it defines. I fixed this by using include_once() rather than include. A patch against the current cvs version is below.
1800c1800
< include_once(EVENT_PATH .'/event_timezones.inc');
---
> include(EVENT_PATH .'/event_timezones.inc');
1903d1902
< include_once(EVENT_PATH.'/event_timezones.inc');
1904a1904
> include(EVENT_PATH .'/event_timezones.inc');
2024c2024
< include_once(EVENT_PATH .'/event_timezones.inc');
---
> include(EVENT_PATH .'/event_timezones.inc');
Comments
Comment #1
killes@www.drop.org commentedthanks, fixed.
Comment #2
dado commentedUsing latest version of event module
$Id: event.module,v 1.206 2006/05/29 18:31:49 killes
Getting this error when I try to insert an event programmatically.
Fatal error: Call to undefined function event_get_offset()
My module is creating event nodes itself. Specifically it needs to set the event node's timezone by doing this
Why would the function event_timezone_map() appear to not exist?
Comment #3
dado commentedThis error is also being experienced by users using node_import module. Was working previously, no change to the node_import code
http://drupal.org/node/67057
Comment #4
dado commentedComment #5
dado commentedI am using Drupal 4.7.1 release.
i get this error with current 4.7 version of event module. To make the error go away, I must roll back to this version of event module, when event.module was at v1.196
// $Id: event.module,v 1.196 2006/05/11 08:27:52 killes
Comment #6
webchickGetting this on signup module as well. Though only on a remote server running PHP 4 and not locally running PHP 5.
Comment #7
webchickLooks like 1.200 is the diff that did it :P
Comment #8
scott.mclewin commentedI've not seen this issue in seven months. I'm assuming that the re-opened instance of it is also not happening. changing from HEAD to 4.7, since that is what HEAD was way back in May, and changing to fixed to start this issue marching off my issues list and the queue for the event module.
Comment #9
(not verified) commented